2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 12 May 2005 21:01:42 +0000 (21:01 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 12 May 2005 21:01:42 +0000 (21:01 +0000)
* elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
against protected function when building executable.

bfd/ChangeLog
bfd/elf32-i386.c

index 1bca5b852d5aec42f1a64b492048ab3a1a8a24bc..f4b9c698370ebfd7e201de070792ed5031fb0251 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2005-05-12  Alan Modra  <amodra@bigpond.net.au>
 
        * elf32-ppc.c (LWZU_0_X_11): Delete.
index fe2ebc85c447845af67390a49cba67e9afb8fc33..491fd9b1dd6b375c494aeb01149bee65ef0c6920 100644 (file)
@@ -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
This page took 0.030258 seconds and 4 git commands to generate.