bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bfd.flags&DYNAMIC vs. bfd_link_info.static


From: John Reiser
Subject: Re: bfd.flags&DYNAMIC vs. bfd_link_info.static
Date: Fri, 01 Jun 2001 15:30:57 -0700

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, address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]