binutils-gdb/ld/testsuite/ld-avr/pr13402.d
Nick Clifton f3be70df1b Fix AVR assembler so that it creates relocs that will work with linker relaxation.
PR 28686
gas	* config/tc-avr.h (tc_fix_adjustable): Define.
	* config/tc-avr.c (avr_fix_adjustable): New function.
	* testsuite/gas/all/gas.exp: Skip tests that need adjustable fixups.
	* testsuite/gas/elf/elf.exp: Likewise.
	* testsuite/gas/avr/diffreloc_withrelax.d: Adjust expected output.
	* testsuite/gas/avr/pc-relative-reloc.d: Adjust expected output.

ld	* testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
	* testsuite/ld-avr/avr-prop-8.d: Likewise.
	* testsuite/ld-avr/pr13402.d: Likewise.
2021-12-16 16:40:57 +00:00

19 lines
382 B
Makefile

#name: AVR fix broken sync between debug_line and code addresses
#as: -mmcu=avrxmega2 -mlink-relax -gdwarf-2
#ld: -mavrxmega2 --relax
#source: pr13402.s
#objdump: -S
#target: avr-*-*
#...
main:
call a
call b
0: 02 d0 rcall .+4 ; 0x6 <_etext>
#...
call c
2: 01 d0 rcall .+2 ; 0x6 <_etext>
#...
4: 00 d0 rcall .+0 ; 0x6 <_etext>
#...