Fix previous delta to allow for compilation on 32-bit systems

This commit is contained in:
Nick Clifton
2022-12-16 15:44:55 +00:00
parent 832a980e17
commit c7ce51d8c8
5 changed files with 60 additions and 3 deletions

View File

@ -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