This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] bfd: prevent all but undef weak syms from becoming dynamic in sparc.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 29 Jun 2017 07:50:02 -0400
- Subject: [binutils-gdb] bfd: prevent all but undef weak syms from becoming dynamic in sparc.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT ec1acaba1381d0196c45965a7db9942b67fbd88d ***
Author: Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
Branch: master
Commit: ec1acaba1381d0196c45965a7db9942b67fbd88d
bfd: prevent all but undef weak syms from becoming dynamic in sparc.
Prevent sparc backend making symbols dynamic unless they are undefined
weak. Use R_SPARC_RELATIVE for the symbols which are not dynamic in PIC.
This patch is tested on sparc64-unknown-linux-gnu, no regressions are
found.
bfd/ChangeLog:
2017-06-29 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
* elfxx-sparc.c (allocate_dynrelocs): Don't make a symbol dynamic
unless it is undefined weak.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Set the flag
relative_reloc to direct non-dynamic symbols to R_SPARC_RELATIVE
relocation.
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): If symbol
is not dynamic in PIC, abort.