aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/Makefile.am
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-12-18 10:47:44 +1030
committerAlan Modra <amodra@gmail.com>2018-12-18 11:57:45 +1030
commita529dcc854968b7f6ad766c714650011dc361382 (patch)
treee10bd95a2d42b2ab1edcda1f50cf7b5a868546de /gold/testsuite/Makefile.am
parent7af5d5c4dda26ac36ee2ff42af8f39a10382cc41 (diff)
downloadgdb-a529dcc854968b7f6ad766c714650011dc361382.zip
gdb-a529dcc854968b7f6ad766c714650011dc361382.tar.gz
gdb-a529dcc854968b7f6ad766c714650011dc361382.tar.bz2
[GOLD] Tweak keep_text_section_prefix test for PowerPC64 ELFv1
This test checks code layout by function symbol ordering, but that doesn't work on powerpc64 ELFv1 where the function symbol is on a descriptor. A simple work-around is to have nm emit synthetic symbols marking the code entry point of functions. Since the text segment is laid out before the data segment, the synthetic symbols will have lower addresses than function descriptor symbols and be seen first in nm -n output. On other targets, nm --synthetic typically emits symbols on plt entries. Since the testcase doesn't call any of the functions of interest there shouldn't be plt entries for those functions, so there should be no potentially confusing extra symbols. * testsuite/Makefile.am (keep_text_section_prefix_nm.stdout): Pass --synthetic to nm. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/testsuite/Makefile.am')
-rw-r--r--gold/testsuite/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index 135790b..e44cf6e 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -388,7 +388,7 @@ keep_text_section_prefix: keep_text_section_prefix.o gcctestdir/ld
keep_text_section_prefix_readelf.stdout: keep_text_section_prefix
$(TEST_READELF) -Wl $< >$@
keep_text_section_prefix_nm.stdout: keep_text_section_prefix
- $(TEST_NM) -n $< >$@
+ $(TEST_NM) -n --synthetic $< >$@
check_PROGRAMS += icf_virtual_function_folding_test
MOSTLYCLEANFILES += icf_virtual_function_folding_test icf_virtual_function_folding_test.map