d3def5d73e
* objdump.c (long_options): Have the --disassemble option take an optional argument. (usage): Add description for the `symbol' argument to the --disassemble option. (disasm_sym): New file private variable. (struct objdump_disasm_info): New field `symbol'. (disassemble_section): Introduce `do_print' local variable to control whether objdump displays the result of disassembling for a symbol or not. (main): Set `symbol' file private variable if the option argument for the --disassemble option is given. * doc/binutils.texi (objdump): Add description for the option argument. * NEWS: Mention the new feature. * testsuite/binutils-all/objdump.exp: Add tests of the -d and --disassemble=<symbol> options. * testsuite/binutils-all/bintest.s: Add more symbols and code. * testsuite/binutils-all/readelf.s: Update expected output. * testsuite/binutils-all/readelf.ss-64: Likewise. * testsuite/binutils-all/readelf.ss-mips: Likewise. * testsuite/binutils-all/readelf.ss-tmips: Likewise.
21 lines
284 B
ArmAsm
21 lines
284 B
ArmAsm
.globl text_symbol
|
|
.text
|
|
text_symbol:
|
|
static_text_symbol:
|
|
.long 1
|
|
.long external_symbol
|
|
.globl data_symbol
|
|
.data
|
|
data_symbol:
|
|
static_data_symbol:
|
|
.long 2
|
|
.comm common_symbol,4
|
|
.text
|
|
.global text_symbol2
|
|
text_symbol2:
|
|
.long 2
|
|
.global text_symbol3
|
|
text_symbol3:
|
|
.long 3
|
|
|