]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[GOLD] justsyms_exec test fail on powerpc64
authorAlan Modra <amodra@gmail.com>
Mon, 26 Nov 2018 11:37:17 +0000 (22:07 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 26 Nov 2018 11:37:46 +0000 (22:07 +1030)
commit9b4e3a5e23b37b3e9ff188043630d190e9c2e55f
treeac1d41ec19886f3db86eece991ef66e1f06cf959
parent2eccb8f91fec7bb6431b55d701e5c7fd2849e3f5
[GOLD] justsyms_exec test fail on powerpc64

This test fails on powerpc64le due to the justsyms_lib being built
with exported_data at 0x2010000, apparently due to the powerpc target
code generating an empty relro .branch_lt section.  Since the test
relies on the library having exported_data at 0x2000000, avoid the
problem by linking with -z norelro.  Also, the test doesn't need to
avoid checking the function symbol on powerpc elfv2.

* testsuite/Makefile.am (justsyms_lib): Link with -z norelro.
* testsuite/Makefile.in: Regenerate.
* testsuite/justsyms_exec.c (main): Do check exported_func
on PowerPC64 ELFv2.
gold/ChangeLog
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/justsyms_exec.c