diff options
author | Nick Clifton <nickc@redhat.com> | 2022-12-16 15:44:55 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-12-16 15:44:55 +0000 |
commit | c7ce51d8c886cc4b34ccee30dd1e7add4058466f (patch) | |
tree | e3ae215340d7f45c855479102a59b579512d0e9a /binutils/testsuite | |
parent | 832a980e1725a4a7fa527f2dcd92a64d7e68ab0f (diff) | |
download | gdb-c7ce51d8c886cc4b34ccee30dd1e7add4058466f.zip gdb-c7ce51d8c886cc4b34ccee30dd1e7add4058466f.tar.gz gdb-c7ce51d8c886cc4b34ccee30dd1e7add4058466f.tar.bz2 |
Fix previous delta to allow for compilation on 32-bit systems
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/objdump.exp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/objdump.exp b/binutils/testsuite/binutils-all/objdump.exp index 436fc46..0ab7842 100644 --- a/binutils/testsuite/binutils-all/objdump.exp +++ b/binutils/testsuite/binutils-all/objdump.exp @@ -375,6 +375,32 @@ if { [is_elf_format] } then { } } +proc test_objdump_d_show_all_symbols { testfile dumpfile } { + global OBJDUMP + global OBJDUMPFLAGS + + set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -d --show-all-symbols $testfile"] + + set want "${dumpfile}.*:.*00+0 <text_symbol>" + if ![regexp $want $got] then { + fail "objdump -d --show-all-symbols $testfile: Missing 'text_symbol'" + return + } + + set want "${dumpfile}.*:.*00+0 <static_text_symbol>" + if ![regexp $want $got] then { + fail "objdump -d --show-all-symbols $testfile: Missing 'static_text_symbol'" + return + } + + pass "objdump -d --show-all-symbols $testfile" +} + +# The AIX and ECOFF assemblers default to makeing symbols local, not global. +# So they do not show up in this test. +setup_xfail "*-*-*aix*" +setup_xfail "*-*-*ecoff" +test_objdump_d_show_all_symbols $testfile $testfile # Test objdump -s |