aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-12 21:01:42 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-12 21:01:42 +0000
commit8fe769244d1120985c562b9579456467d41828b4 (patch)
tree0239e087d6cbef81186c39a650379700da6ff625 /bfd/elf32-i386.c
parent5711a8b054c639f25447eac46087c5262e3a72dc (diff)
downloadgdb-8fe769244d1120985c562b9579456467d41828b4.zip
gdb-8fe769244d1120985c562b9579456467d41828b4.tar.gz
gdb-8fe769244d1120985c562b9579456467d41828b4.tar.bz2
2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF against protected function when building executable.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index fe2ebc8..491fd9b 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -2368,6 +2368,7 @@ elf_i386_relocate_section (bfd *output_bfd,
for shared library since it may not be local when used
as function address. */
if (info->shared
+ && !info->executable
&& h
&& h->def_regular
&& h->type == STT_FUNC