aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-06 09:13:53 +0930
committerAlan Modra <amodra@gmail.com>2019-05-06 11:41:28 +0930
commite1cbf07ac4f8c8525dfadaa19bfb2997a2bfaad9 (patch)
treeb209e98f68947da6e5123e0907aacd3721dc71a1 /bfd
parent334d91b9407c5f9f37f224b0f43551c01964eff1 (diff)
downloadfsf-binutils-gdb-e1cbf07ac4f8c8525dfadaa19bfb2997a2bfaad9.zip
fsf-binutils-gdb-e1cbf07ac4f8c8525dfadaa19bfb2997a2bfaad9.tar.gz
fsf-binutils-gdb-e1cbf07ac4f8c8525dfadaa19bfb2997a2bfaad9.tar.bz2
PicoJava weak undefined symbols
This fixes the recently added ld-elf/pr24511 test failure on pj-elf. Incidentally, pj-elf has failed its gas "pj" test since 2005-12-22 (git commit 54758c3e39). I think that makes the target ripe for obsolescence. bfd/ * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error. ld/ * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-pj.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0907098..f272ff8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2019-05-06 Alan Modra <amodra@gmail.com>
+ * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
+
+2019-05-06 Alan Modra <amodra@gmail.com>
+
* reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
(BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
diff --git a/bfd/elf32-pj.c b/bfd/elf32-pj.c
index 712b352..c97d620 100644
--- a/bfd/elf32-pj.c
+++ b/bfd/elf32-pj.c
@@ -54,6 +54,7 @@ pj_elf_reloc (bfd *abfd,
}
if (symbol_in != NULL
+ && (symbol_in->flags & BSF_WEAK) == 0
&& bfd_is_und_section (symbol_in->section))
return bfd_reloc_undefined;