aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-avr/relax-03.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-avr/relax-03.d')
-rw-r--r--ld/testsuite/ld-avr/relax-03.d26
1 files changed, 26 insertions, 0 deletions
diff --git a/ld/testsuite/ld-avr/relax-03.d b/ld/testsuite/ld-avr/relax-03.d
new file mode 100644
index 0000000..a538c04
--- /dev/null
+++ b/ld/testsuite/ld-avr/relax-03.d
@@ -0,0 +1,26 @@
+#name: AVR relaxation, single function in section.
+#as: -mmcu=avrxmega2 -mlink-relax
+#ld: -mavrxmega2 --relax
+#source: relax-03.s
+#objdump: -tzd
+#target: avr-*-*
+
+.*: file format elf32-avr
+
+SYMBOL TABLE:
+#...
+00000000 l F .text [0-9a-f]+ local_start
+0000000a l .text 00000000 local_end_label
+#...
+00000000 g F \.text [0-9a-f]+ _start
+0000000a g \.text 00000000 end_label
+#...
+
+Disassembly of section \.text:
+
+00000000 <_start>:
+ 0: 00 00 nop
+ 2: 03 c0 rjmp \.\+6 ; 0xa <.*>
+ 4: 02 c0 rjmp \.\+4 ; 0xa <.*>
+ 6: 01 c0 rjmp \.\+2 ; 0xa <.*>
+ 8: 00 00 nop