mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-10 01:23:17 +00:00
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.
29 lines
676 B
Makefile
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
|