From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Reiser To: "H . J . Lu" Cc: binutils@sources.redhat.com, bug-binutils@gnu.org, Philip Blundell Subject: Re: bfd.flags&DYNAMIC vs. bfd_link_info.static Date: Fri, 01 Jun 2001 15:38:00 -0000 Message-id: <3B1817A1.255A470B@BitWagon.com> References: <991410192.21718.ezmlm@sources.redhat.com> <3B17DE86.DBAB8D23@BitWagon.com> <20010601120832.A7786@lucon.org> <3B17F612.7DACA4C2@BitWagon.com> <20010601132102.B8818@lucon.org> X-SW-Source: 2001-06/msg00025.html 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