Files
binutils-gdb/binutils/testsuite/binutils-all/multi-3.d
Jan Beulich cdd8492b05 objdump: permit disassembling multiple individual functions
Compilers may split functions, e.g. into a "hot" and "cold" part, or
they may emit special case instantiations (e.g. as a result of IPA). It
can be helpful to be able to disassemble all of the parts or clones in
one go. Permit using "--disassemble=" multiple times.
2025-03-07 11:24:19 +01:00

29 lines
676 B
Makefile

#name: objdump multiple --disassemble=
#source: multi1.s
#source: multi2.s
#ld: -r
#objdump: --disassemble=func --disassemble=func2 -wz
# ECOFF disassembly omits local symbols, for whatever reason.
#xfail: "alpha*-*-*ecoff" "alpha*-*-osf*"
.*: +file format .*
Disassembly of section .*:
0+ <func>:
[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
#?[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
#?[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
0+[0-1][0-9a-f] <func2>:
[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
#...
0+[0-2][0-9a-f] <func2>:
[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
#?[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
#?[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
0+[0-3][0-9a-f] <func>:
[ ]*[0-9a-f]+: [0-9a-f][0-9a-f].*
#pass