diff options
Diffstat (limited to 'ld/testsuite/ld-avr')
-rw-r--r-- | ld/testsuite/ld-avr/pr20789.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-avr/pr20789.s | 12 |
2 files changed, 26 insertions, 0 deletions
diff --git a/ld/testsuite/ld-avr/pr20789.d b/ld/testsuite/ld-avr/pr20789.d new file mode 100644 index 0000000..fb1114b --- /dev/null +++ b/ld/testsuite/ld-avr/pr20789.d @@ -0,0 +1,14 @@ +#name: AVR Account for relaxation in negative label differences +#as: -mmcu=avrxmega2 -mlink-relax +#ld: -mavrxmega2 --relax +#source: pr20789.s +#objdump: -s +#target: avr-*-* + +.*: file format elf32-avr + +Contents of section .text: + 0000 ffcf .* +Contents of section .data: + 802000 feff .* + diff --git a/ld/testsuite/ld-avr/pr20789.s b/ld/testsuite/ld-avr/pr20789.s new file mode 100644 index 0000000..cee46e7 --- /dev/null +++ b/ld/testsuite/ld-avr/pr20789.s @@ -0,0 +1,12 @@ + .file "pr20789.s" +.section .text,"ax",@progbits +main: +L1: + jmp L1 +L2: +.global x + .section .data + .type x, @object + .size x, 2 +x: + .word L1 - L2 |