mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 08:13:37 +08:00
1857fe72af
This patch adds default data address space origin (0x800000) to the symbol addresses. when disassemble lds/sts instructions. So that symbol names shall be printed in comments for lds/sts instructions disassemble. ld/ * testsuite/ld-avr/lds-mega.d: New test. * testsuite/ld-avr/lds-mega.s: New test source. * testsuite/ld-avr/lds-tiny.d: New test. * testsuite/ld-avr/lds-tiny.s: New test source. opcodes/ * avr-dis.c (avr_operand): Add default data address space origin (0x800000) to the address and set as symbol address for LDS/ STS immediate operands.
15 lines
205 B
ArmAsm
15 lines
205 B
ArmAsm
.file "lds-tiny.s"
|
|
.text
|
|
.global main
|
|
.type main, @function
|
|
main:
|
|
.L__stack_usage = 0
|
|
lds r18, 0x40
|
|
lds r20, 0x42
|
|
lds r21, 0x43
|
|
ret
|
|
.size main, .-main
|
|
.comm myvar1,1,1
|
|
.comm myvar2,2,1
|
|
|