[patch] ld test suite linkonce1 fix for cr16-elf

M R Swami Reddy MR.Swami.Reddy@nsc.com
Wed Sep 9 09:18:00 GMT 2009


Hi,
Below patch will fix the ld test suite "linkonce1" test failure.
Ran "make check-ld", "make check-gas" and "make check-binutils". No 
regressions
[and ld/testsuite/ld-elf/linkince1 passed with this patch].

ChangeLog:

        M R Swami Reddy <MR.Swami.Reddy@nsc.com>

        * elf32-cr16.c (elf32_cr16_relocate_section): Removed 
info->relocatable
        to fix the ld/testsuites/ld-elf/linkonce1 test case.


Index: elf32-cr16.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-cr16.c,v
retrieving revision 1.10
diff -u -r1.10 elf32-cr16.c
--- elf32-cr16.c        9 Sep 2009 04:49:08 -0000       1.10
+++ elf32-cr16.c        9 Sep 2009 09:15:17 -0000
@@ -1431,9 +1431,6 @@
   struct elf_link_hash_entry **sym_hashes;
   Elf_Internal_Rela *rel, *relend;

-  if (info->relocatable)
-    return TRUE;
-
   symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
   sym_hashes = elf_sym_hashes (input_bfd);





More information about the Binutils mailing list