mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 08:13:37 +08:00
31eef93e71
This patch fixes another edge case related to alignment property records - reloc offsets adjacent to property record offsets were not getting adjusted during relaxation. bfd/ PR ld/20254 * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust reloc offsets until reloc_toaddr. ld/ PR ld/20254 * testsuite/ld-avr/avr-prop-6.d: New test. * testsuite/ld-avr/avr-prop-6.s: New test.
15 lines
317 B
Makefile
15 lines
317 B
Makefile
#name: AVR .avr.prop, single .align sym at end of section test.
|
|
#as: -mavrxmega2 -mlink-relax
|
|
#ld: -mavrxmega2 --relax
|
|
#source: avr-prop-6.s
|
|
#objdump: -S
|
|
#target: avr-*-*
|
|
|
|
#...
|
|
0: 00 c0 rjmp .+0 ; 0x2 <dest>
|
|
|
|
00000002 <dest>:
|
|
2: 00 00 nop
|
|
4: fe cf rjmp .-4 ; 0x2 <dest>
|
|
#...
|