aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-05-03 16:04:12 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-05-03 16:04:12 +0000
commit711ef82f1d0a4fb40bcec63df99e9beddd125659 (patch)
treec761d6195de76114d16a0aa9d7315cfa44e185e7 /gas/testsuite
parent74cb52a637dc91275cfbf4f6b5ff003b0c782e2a (diff)
downloadgdb-711ef82f1d0a4fb40bcec63df99e9beddd125659.zip
gdb-711ef82f1d0a4fb40bcec63df99e9beddd125659.tar.gz
gdb-711ef82f1d0a4fb40bcec63df99e9beddd125659.tar.bz2
gas/
2003-05-03 H.J. Lu <hjl@gnu.org> * config/obj-elf.c (obj_elf_parse_section_letters): Make it a fatal error for unknown section attribute. * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for unknown section attribute. * config/tc-ia64.c (ia64_elf_section_letter): Likewise. * config/tc-ppc.c (ppc_section_letter): Likewise. * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'. (ia64_elf_section_type): Accept "unwind". gas/testsuite/ 2003-05-03 H.J. Lu <hjl@gnu.org> * gas/ia64/ia64.exp: Add unwind. * gas/ia64/unwind.s: New. Test the new section attribute 'o' and the new section type "unwind". * gas/ia64/unwind.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/ia64/ia64.exp1
-rw-r--r--gas/testsuite/gas/ia64/unwind.d30
-rw-r--r--gas/testsuite/gas/ia64/unwind.s4
4 files changed, 43 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 2da83f2..0822e43 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2003-05-03 H.J. Lu <hjl@gnu.org>
+
+ * gas/ia64/ia64.exp: Add unwind.
+
+ * gas/ia64/unwind.s: New. Test the new section attribute 'o'
+ and the new section type "unwind".
+ * gas/ia64/unwind.d: Likewise.
+
2003-05-02 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips.exp (mips_arch_init): Reimplement in
diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp
index 57c0e38..4597ca1 100644
--- a/gas/testsuite/gas/ia64/ia64.exp
+++ b/gas/testsuite/gas/ia64/ia64.exp
@@ -47,4 +47,5 @@ if [istarget "ia64-*"] then {
run_dump_test "order"
run_dump_test "global"
run_dump_test "secname"
+ run_dump_test "unwind"
}
diff --git a/gas/testsuite/gas/ia64/unwind.d b/gas/testsuite/gas/ia64/unwind.d
new file mode 100644
index 0000000..b29ef01
--- /dev/null
+++ b/gas/testsuite/gas/ia64/unwind.d
@@ -0,0 +1,30 @@
+#readelf: -S
+#name: ia64 unwind section
+
+There are 9 section headers, starting at offset 0xa0:
+
+Section Headers:
+ \[Nr\] Name Type Address Offset
+ Size EntSize Flags Link Info Align
+ \[ 0\] NULL 0000000000000000 00000000
+ 0000000000000000 0000000000000000 0 0 0
+ \[ 1\] \.text PROGBITS 0000000000000000 00000040
+ 0000000000000000 0000000000000000 AX 0 0 16
+ \[ 2\] \.data PROGBITS 0000000000000000 00000040
+ 0000000000000000 0000000000000000 WA 0 0 1
+ \[ 3\] \.bss NOBITS 0000000000000000 00000040
+ 0000000000000000 0000000000000000 WA 0 0 1
+ \[ 4\] \.IA_64\.unwind_inf PROGBITS 0000000000000000 00000040
+ 0000000000000008 0000000000000000 A 0 0 8
+ \[ 5\] \.IA_64\.unwind IA_64_UNWIND 0000000000000000 00000048
+ 0000000000000008 0000000000000000 AL 1 1 8
+ \[ 6\] \.shstrtab STRTAB 0000000000000000 00000050
+ 000000000000004d 0000000000000000 0 0 1
+ \[ 7\] \.symtab SYMTAB 0000000000000000 000002e0
+ 0000000000000090 0000000000000018 8 6 8
+ \[ 8\] \.strtab STRTAB 0000000000000000 00000370
+ 0000000000000001 0000000000000000 0 0 1
+Key to Flags:
+ W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
+ I \(info\), L \(link order\), G \(group\), x \(unknown\)
+ O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
diff --git a/gas/testsuite/gas/ia64/unwind.s b/gas/testsuite/gas/ia64/unwind.s
new file mode 100644
index 0000000..a8c2be0
--- /dev/null
+++ b/gas/testsuite/gas/ia64/unwind.s
@@ -0,0 +1,4 @@
+ .section .IA_64.unwind_info, "a", "progbits"
+ data8 1234
+ .section .IA_64.unwind, "ao", "unwind"
+ data8 1234