--- /dev/null
+#name: .data / .previous interaction
+#as: --no-pad-sections
+#readelf: -S --wide
+
+There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
+
+Section Headers:
+ +\[Nr\] Name +Type +Addr(ess|) +Off +Size .*
+#...
+ *\[ [1-9]\] *\.text +PROGBITS +0*0 +0[0-9a-f]* 0* .*
+ *\[ [1-9]\] *\.data +PROGBITS +0*0 +0[0-9a-f]* 0*1 .*
+#...
+ *\[ [1-9]\] *\.aux +PROGBITS +0*0 +0[0-9a-f]* 0*1 .*
+#pass
--- /dev/null
+ .text
+ .section .aux, "a", %progbits
+ .data
+ .byte 0
+ .previous
+ .byte 1
--- /dev/null
+#name: .data <subsection>
+#as: --no-pad-sections
+#readelf: -S --wide
+
+There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
+
+Section Headers:
+ +\[Nr\] Name +Type +Addr(ess|) +Off +Size .*
+#...
+ *\[ [1-9]\] *\.data +PROGBITS +0*0 +0[0-9a-f]* 0*a .*
+#pass
--- /dev/null
+ .data
+ .byte 1
+
+ .data 2
+ .balign 2
+ .byte 3
+ .byte 3
+
+ .data 1
+ .balign 4
+ .byte 2
+ .byte 2
+ .byte 2
+ .byte 2
}
}
run_dump_test "pseudo"
+ run_dump_test "text-prev" $dump_opts
+ run_dump_test "text-subsect" $dump_opts
+ run_dump_test "data-prev" $dump_opts
+ run_dump_test "data-subsect" $dump_opts
run_dump_test "section0"
run_dump_test "section1"
# The h8300 port issues a warning message for
--- /dev/null
+#name: .text / .previous interaction
+#as: --no-pad-sections
+#readelf: -S --wide
+
+There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
+
+Section Headers:
+ +\[Nr\] Name +Type +Addr(ess|) +Off +Size .*
+#...
+ *\[ [1-9]\] *\.text +PROGBITS +0*0 +0[0-9a-f]* 0*([1248]|10) .*
+ *\[ [1-9]\] *\.data +PROGBITS +0*0 +0[0-9a-f]* 0* .*
+#...
+ *\[ [1-9]\] *\.aux +PROGBITS +0*0 +0[0-9a-f]* 0*1 .*
+#pass
--- /dev/null
+ .data
+ .section .aux, "a", %progbits
+ .text
+ .nop
+ .previous
+ .byte 0
--- /dev/null
+#name: .text <subsection>
+#as: --no-pad-sections
+#readelf: -S --wide
+
+There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+:
+
+Section Headers:
+ +\[Nr\] Name +Type +Addr(ess|) +Off +Size .*
+#...
+ *\[ [1-9]\] *\.text +PROGBITS +0*0 +0[0-9a-f]* 0*(6[1248]|70) .*
+#pass
--- /dev/null
+ .text
+ .nop
+
+ .text 2
+ .balign 32
+ .nop
+
+ .text 1
+ .balign 64
+ .nop