binutils-gdb/ld/testsuite/ld-avr/lds-tiny.d
Denis Chertykov 1857fe72af Print symbol names in comments for LDS/STS disassembly.
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.
2016-06-09 19:00:57 +03:00

19 lines
411 B
Makefile

#name: AVR (avrtiny) check disassembly if symbolic name present
#as: -mavrtiny
#ld: -mavrtiny
#objdump: -d
#source: lds-tiny.s
#target: avr-*-*
.*: file format elf32-avr
Disassembly of section .text:
00000000 <main>:
0: 20 a1 lds r18, 0x40 ; 0x800040 <_edata>
2: 42 a1 lds r20, 0x42 ; 0x800042 <myvar2\+0x1>
4: 53 a1 lds r21, 0x43 ; 0x800043 <_end>
6: 08 95 ret