blob: e70fcb1919e7103e212289724dbeae996430df6a [file] [log] [blame]
Ben Cheng25b3c042013-11-20 14:45:36 -08001/* Return true if the symbol type is that referencing the GOT. E.g.,
2 R_386_GOTPC.
3 Copyright (C) 2003 Red Hat, Inc.
4 This file is part of Red Hat elfutils.
5 Written by Ulrich Drepper <drepper@redhat.com>, 2003.
6
7 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.
10
11 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,
18 Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
19
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>. */
51
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}