old-cross-binutils/ld/testsuite/ld-avr/relax-03.d
Andrew Burgess 931b79ccd6 When relaxing, update size of symbols.
When performing linker relaxation, reduce the size of symbols that span
the deleted bytes.  This ensures that, for example, function symbols
will have the correct size.

bfd/ChangeLog:

	* elf32-avr.c (elf32_avr_relax_delete_bytes): During linker
	relaxation, reduce the size of symbols that span the deleted
	bytes.

ld/ChangeLog:

	* testsuite/ld-avr/relax-02.d: Update to check size of symbols has
	changed.
	* testsuite/ld-avr/relax-03.d: Likewise.
2014-11-03 20:34:13 +00:00

26 lines
638 B
Makefile

#name: AVR relaxation, single function in section.
#as: -mmcu=avrxmega2 -mlink-relax
#ld: -mavrxmega2 --relax
#source: relax-03.s
#objdump: -tzd
#target: avr-*-*
.*: file format elf32-avr
SYMBOL TABLE:
#...
00000000 l F .text 0000000a local_start
0000000a l .text 00000000 local_end_label
#...
00000000 g F \.text 0000000a _start
0000000a g \.text 00000000 end_label
#...
Disassembly of section \.text:
00000000 <_start>:
0: 00 00 nop
2: 03 c0 rjmp \.\+6 ; 0xa <.*>
4: 02 c0 rjmp \.\+4 ; 0xa <.*>
6: 01 c0 rjmp \.\+2 ; 0xa <.*>
8: 00 00 nop