diff options
author | Mark Wielaard <mark@klomp.org> | 2020-04-17 12:21:46 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2020-04-22 00:23:12 +0200 |
commit | 51cfbaabefd6d5ebdd7513b876daf78d07470f8c (patch) | |
tree | 8f86a3abb7cd4089503e9984b95ed1f5bcd1eb24 /tests | |
parent | a68e12bfe531ed21bf9e5a5444f990bb3cb1247c (diff) | |
download | elfutils-51cfbaabefd6d5ebdd7513b876daf78d07470f8c.tar.gz |
tests: Build test-nlist with minimal CFLAGS to guarantee symbol order.
test_nlist checks its own symbol table, and expects various symbols
to be in the order as specified in the source file. Explicitly set
minimal CFLAGS.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 5 | ||||
-rw-r--r-- | tests/Makefile.am | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 96e0642a..886a3efb 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2020-04-17 Mark Wielaard <mark@klomp.org> + + * Makefile.am (test-nlist$): New goal with minimal CFLAGS. + (test_nlist_CFLAGS): New variable. + 2020-03-28 Frank Ch. Eigler <fche@redhat.com> * run-debuginfod-find.sh: Test timestamps of archive-origin files. diff --git a/tests/Makefile.am b/tests/Makefile.am index 40b1c001..d173d547 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -80,6 +80,14 @@ backtrace-child-biarch$(EXEEXT): backtrace-child.c $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \ -o $@ $< +# test_nlist checks its own symbol table, and expects various symbols +# to be in the order as specified in the source file. Explicitly set +# minimal CFLAGS +test-nlist$(EXEEXT): test-nlist.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(test_nlist_CFLAGS) $(test_nlist_LDADD) -o $@ $< + TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \ update1 update2 update3 update4 \ run-show-die-info.sh run-get-files.sh run-get-lines.sh \ @@ -557,6 +565,7 @@ scnnames_LDADD = $(libelf) sectiondump_LDADD = $(libelf) showptable_LDADD = $(libelf) hash_LDADD = $(libelf) +test_nlist_CFLAGS =-g -O0 test_nlist_LDADD = $(libelf) msg_tst_LDADD = $(libelf) newscn_LDADD = $(libelf) |