This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] [PR ld/22269] aarch64: Handle local undefined weak symbols
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 27 Nov 2017 07:30:11 -0500
- Subject: [binutils-gdb] [PR ld/22269] aarch64: Handle local undefined weak symbols
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT a377ae2ad683d3c16ae74dba440ee441120a7d8a ***
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Branch: master
Commit: a377ae2ad683d3c16ae74dba440ee441120a7d8a
[PR ld/22269] aarch64: Handle local undefined weak symbols
With static pie linking undefined weak symbols are forced to resolve locally
to 0, so no GOT setup is needed in elfNN_aarch64_finish_dynamic_symbol,
which previously failed for these symbols.
The failure caused the unhelpful error message:
"ld: final link failed: Nonrepresentable section on output"
bfd/
PR ld/22269
* elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Use
UNDEFWEAK_NO_DYNAMIC_RELOC to avoid dynamic GOT relocs.
(elfNN_aarch64_allocate_dynrelocs): Likewise.