mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
839189bc93
For disassembly to pick up aliases in favor of underlying insns (helping readability in the common case), the aliases need to come ahead of the "base" insns. Slightly more code movement is needed because of insns with the same name needing to stay next to each other. Note that the "rorw" alias entry also has the missing INSN_ALIAS added here. Clone a few testcases to exercise -Mno-aliases some more, better covering the differences between the default and that disassembly mode.
20 lines
641 B
Makefile
20 lines
641 B
Makefile
#...
|
|
Disassembly of section .plt:
|
|
#...
|
|
0+[0-9a-f]+ <(\*ABS\*\+0x[0-9a-f]+@plt|foo@plt|.plt)>:
|
|
#...
|
|
Disassembly of section .text:
|
|
#...
|
|
0+[0-9a-f]+ <foo_resolver>:
|
|
#...
|
|
0+[0-9a-f]+ <bar>:
|
|
.*:[ ]+[0-9a-f]+[ ]+auipc[ ]+.*
|
|
.*:[ ]+[0-9a-f]+[ ]+(lw|ld)[ ]+.*<(_GLOBAL_OFFSET_TABLE_.*|__DATA_BEGIN__.*|.*)>
|
|
.*:[ ]+[0-9a-f]+[ ]+auipc[ ]+.*
|
|
.*:[ ]+[0-9a-f]+[ ]+addi?[ ]+.*<(\*ABS\*\+0x[0-9a-f]+@plt|foo@plt|.plt)>
|
|
.*:[ ]+[0-9a-f]+[ ]+auipc[ ]+.*
|
|
.*:[ ]+[0-9a-f]+[ ]+jalr[ ]+.*<(\*ABS\*\+0x[0-9a-f]+@plt|foo@plt|.plt)>
|
|
.*:[ ]+[0-9a-f]+[ ]+auipc[ ]+.*
|
|
.*:[ ]+[0-9a-f]+[ ]+jalr[ ]+.*<(\*ABS\*\+0x[0-9a-f]+@plt|foo@plt|.plt)>
|
|
#...
|