diff options
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-avr/avr-prop-6.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-avr/avr-prop-6.s | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/ld/testsuite/ld-avr/avr-prop-6.d b/ld/testsuite/ld-avr/avr-prop-6.d new file mode 100644 index 0000000..1bf8aa1 --- /dev/null +++ b/ld/testsuite/ld-avr/avr-prop-6.d @@ -0,0 +1,14 @@ +#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> +#... diff --git a/ld/testsuite/ld-avr/avr-prop-6.s b/ld/testsuite/ld-avr/avr-prop-6.s new file mode 100644 index 0000000..4aa3e67 --- /dev/null +++ b/ld/testsuite/ld-avr/avr-prop-6.s @@ -0,0 +1,9 @@ + .text + .global _start, dest +_start: + jmp dest + .align 1 +dest: + nop + rjmp dest + |