This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] ld test suite linkonce1 fix for cr16-elf
- From: "M R Swami Reddy" <MR dot Swami dot Reddy at nsc dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 09 Sep 2009 14:48:01 +0530
- Subject: [patch] ld test suite linkonce1 fix for cr16-elf
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);