blob: e70fcb1919e7103e212289724dbeae996430df6a [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001/* Return true if the symbol type is that referencing the GOT. E.g.,
2 R_386_GOTPC.
3 Copyright (C) 2003 Red Hat, Inc.
Ulrich Drepper361df7d2006-04-04 21:38:57 +00004 This file is part of Red Hat elfutils.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00005 Written by Ulrich Drepper <drepper@redhat.com>, 2003.
6
Ulrich Drepper361df7d2006-04-04 21:38:57 +00007 Red Hat elfutils is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by the
9 Free Software Foundation; version 2 of the License.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000010
Ulrich Drepper361df7d2006-04-04 21:38:57 +000011 Red Hat elfutils is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License along
17 with Red Hat elfutils; if not, write to the Free Software Foundation,
Ulrich Drepper1e9ef502006-04-04 22:29:06 +000018 Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
Ulrich Drepper361df7d2006-04-04 21:38:57 +000019
20 In addition, as a special exception, Red Hat, Inc. gives You the
21 additional right to link the code of Red Hat elfutils with code licensed
22 under any Open Source Initiative certified open source license
23 (http://www.opensource.org/licenses/index.php) which requires the
24 distribution of source code with any binary distribution and to
25 distribute linked combinations of the two. Non-GPL Code permitted under
26 this exception must only link to the code of Red Hat elfutils through
27 those well defined interfaces identified in the file named EXCEPTION
28 found in the source code files (the "Approved Interfaces"). The files
29 of Non-GPL Code may instantiate templates or use macros or inline
30 functions from the Approved Interfaces without causing the resulting
31 work to be covered by the GNU General Public License. Only Red Hat,
32 Inc. may make changes or additions to the list of Approved Interfaces.
33 Red Hat's grant of this exception is conditioned upon your not adding
34 any new exceptions. If you wish to add a new Approved Interface or
35 exception, please contact Red Hat. You must obey the GNU General Public
36 License in all respects for all of the Red Hat elfutils code and other
37 code used in conjunction with Red Hat elfutils except the Non-GPL Code
38 covered by this exception. If you modify this file, you may extend this
39 exception to your version of the file, but you are not obligated to do
40 so. If you do not wish to provide this exception without modification,
41 you must delete this exception statement from your version and license
42 this file solely under the GPL without exception.
43
44 Red Hat elfutils is an included package of the Open Invention Network.
45 An included package of the Open Invention Network is a package for which
46 Open Invention Network licensees cross-license their patents. No patent
47 license is granted, either expressly or impliedly, by designation as an
48 included package. Should you wish to participate in the Open Invention
49 Network licensing program, please visit www.openinventionnetwork.com
50 <http://www.openinventionnetwork.com>. */
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000051
52#ifdef HAVE_CONFIG_H
53# include <config.h>
54#endif
55
56#include <libeblP.h>
57
58
59bool
60ebl_gotpc_reloc_check (ebl, reloc)
61 Ebl *ebl;
62 int reloc;
63{
64 return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
65}