bfd.flags&DYNAMIC vs. bfd_link_info.static
John Reiser
jreiser@BitWagon.com
Fri Jun 1 15:38:00 GMT 2001
This change helps, so far.
The NONE relocation is still present in .rel.got, but the slot itself
already has been relocated (output is ET_EXEC (no -shared), not ET_DYN).
--- ../../old/binutils-2.11/bfd/elf32-i386.c Wed Feb 14 01:43:10 2001
+++ elf32-i386.c Fri Jun 1 15:12:59 2001
@@ -1412,4 +1412,5 @@
&& h->plt.offset != (bfd_vma) -1)
|| (r_type == R_386_GOT32
+ && !(h->elf_link_hash_flags & ELF_LINK_FORCED_LOCAL)
&& elf_hash_table (info)->dynamic_sections_created
&& (! info->shared
@@ -1483,4 +1484,5 @@
if (! elf_hash_table (info)->dynamic_sections_created
+ || h->elf_link_hash_flags & ELF_LINK_FORCED_LOCAL
|| (info->shared
&& (info->symbolic || h->dynindx == -1)
--
John Reiser, jreiser@BitWagon.com
More information about the Binutils
mailing list