]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/
authorAlan Modra <amodra@gmail.com>
Thu, 23 Sep 2010 11:40:06 +0000 (11:40 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 23 Sep 2010 11:40:06 +0000 (11:40 +0000)
* ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
to output section on a final link.
bfd/
* elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
difference between input and output section.

bfd/ChangeLog
bfd/elf.c
ld/ChangeLog
ld/ldlang.c

index 56e2f12d2863869f451c520677bbdaf0ac70b6eb..95d4672841b9068f2f93efc543b4a5324db4b3ae 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-23  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
+       difference between input and output section.
+
 2010-09-22  Kai Tietz  <kai.tietz@onevision.com>
 
        * coffcode.h (sec_to_styp_flags): Adjust debug
@@ -5,8 +10,8 @@
        and avoid marking them as excluded.
        (styp_to_sec_flags): Doing reverse mapping.
 
-       * peXXigen.c (_bfd_XXi_final_link_postscript):
-       Add handling for setting IAT directory entry.
+       * peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for
+       setting IAT directory entry.
 
 2010-09-20  Richard Henderson  <rth@redhat.com>
 
index 5ec92e92b9ca362ff5d57dd88f88d92a526f2a2f..fe5f19fc075d1304b47be3cce504147407ebbc37 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6110,7 +6110,7 @@ _bfd_elf_init_private_section_data (bfd *ibfd,
       && (osec->flags == isec->flags
          || (final_link
              && ((osec->flags ^ isec->flags)
-                 & ~ (SEC_LINK_ONCE | SEC_LINK_DUPLICATES)) == 0)))
+                 & ~(SEC_LINK_ONCE | SEC_LINK_DUPLICATES | SEC_RELOC)) == 0)))
     elf_section_type (osec) = elf_section_type (isec);
 
   /* FIXME: Is this correct for all OS/PROC specific flags?  */
index 0f4fa4365708f5b0cced6bf570616d538c059a85..e7c8e774b2b827f310d1132d8736e4732d65e53b 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-23  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
+       to output section on a final link.
+
 2010-09-22  Kai Tietz  <kai.tietz@onevision.com>
 
        * ldlang.c (lang_add_section): Allow for debugging
index 1c3861831504b51afd8f15a7d0500cf32f0a7894..36750edcd62ceab00d1f6a39a4429595d71a5b5c 100644 (file)
@@ -2232,7 +2232,7 @@ lang_add_section (lang_statement_list_type *ptr,
      to see .text with SEC_LINK_ONCE set.  */
 
   if (!link_info.relocatable)
-    flags &= ~ (SEC_LINK_ONCE | SEC_LINK_DUPLICATES);
+    flags &= ~(SEC_LINK_ONCE | SEC_LINK_DUPLICATES | SEC_RELOC);
 
   switch (output->sectype)
     {