diff options
author | Alan Modra <amodra@gmail.com> | 2018-11-26 22:07:17 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-11-26 22:07:46 +1030 |
commit | 9b4e3a5e23b37b3e9ff188043630d190e9c2e55f (patch) | |
tree | ac1d41ec19886f3db86eece991ef66e1f06cf959 /gold/testsuite/Makefile.in | |
parent | 2eccb8f91fec7bb6431b55d701e5c7fd2849e3f5 (diff) | |
download | fsf-binutils-gdb-9b4e3a5e23b37b3e9ff188043630d190e9c2e55f.zip fsf-binutils-gdb-9b4e3a5e23b37b3e9ff188043630d190e9c2e55f.tar.gz fsf-binutils-gdb-9b4e3a5e23b37b3e9ff188043630d190e9c2e55f.tar.bz2 |
[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.
Diffstat (limited to 'gold/testsuite/Makefile.in')
-rw-r--r-- | gold/testsuite/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in index 61ea653..db92394 100644 --- a/gold/testsuite/Makefile.in +++ b/gold/testsuite/Makefile.in @@ -8766,7 +8766,7 @@ uninstall-am: @GCC_TRUE@@NATIVE_LINKER_TRUE@justsyms_lib.o: justsyms_lib.c @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(COMPILE) -c -o $@ $< @GCC_TRUE@@NATIVE_LINKER_TRUE@justsyms_lib: justsyms_lib.o gcctestdir/ld -@GCC_TRUE@@NATIVE_LINKER_TRUE@ gcctestdir/ld -o $@ -Ttext=0x1000200 -Tdata=0x2000000 -e exported_func justsyms_lib.o +@GCC_TRUE@@NATIVE_LINKER_TRUE@ gcctestdir/ld -o $@ -z norelro -Ttext=0x1000200 -Tdata=0x2000000 -e exported_func justsyms_lib.o # Copy the file to the build directory to avoid worrying about the # full pathname in the generated symbols. @GCC_TRUE@@NATIVE_LINKER_TRUE@binary.txt: $(srcdir)/binary.in |