mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 08:13:37 +08:00
a12d0ffc72
Symbols at the very end of a section were not being updated correctly when linker relaxation takes place due to the use of '<' instead of '<='. Added a couple of tests to cover this behaviour. bfd/ChangeLog: * elf32-avr.c (elf32_avr_relax_delete_bytes): Modify symbols located at the very end of the section. ld/ChangeLog: * ld/testsuite/ld-avr/relax-02.d: New file. * ld/testsuite/ld-avr/relax-02.s: New file. * ld/testsuite/ld-avr/relax-03.d: New file. * ld/testsuite/ld-avr/relax-03.s: New file.
19 lines
378 B
ArmAsm
19 lines
378 B
ArmAsm
.section ".text", "ax",@progbits
|
|
.global _start, end_label
|
|
|
|
_start:
|
|
local_start:
|
|
nop
|
|
jmp end_label
|
|
jmp end_label
|
|
jmp end_label
|
|
nop
|
|
.type _start, @function
|
|
.size _start, .-_start
|
|
|
|
.type local_start, @function
|
|
.size local_start, .-local_start
|
|
|
|
end_label:
|
|
local_end_label:
|