Fix AVR assembler so that it creates relocs that will work with linker relaxation.
authorNick Clifton <nickc@redhat.com>
Thu, 16 Dec 2021 16:40:57 +0000 (16:40 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 16 Dec 2021 16:40:57 +0000 (16:40 +0000)
commitf3be70df1b1681ad1b9b0490587011bde433d220
tree1d1938d029b210dc78c70ce4fba57a254add490b
parent61ab1364c7efa3934e0ca62af444e6e6e34f219e
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.
gas/ChangeLog
gas/config/tc-avr.c
gas/config/tc-avr.h
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/avr/diffreloc_withrelax.d
gas/testsuite/gas/avr/pc-relative-reloc.d
gas/testsuite/gas/elf/elf.exp
ld/ChangeLog
ld/testsuite/ld-avr/avr-prop-7.d
ld/testsuite/ld-avr/avr-prop-8.d
ld/testsuite/ld-avr/pr13402.d