aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-07-02 02:01:23 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-07-02 02:01:23 +0000
commit2d2b9592a766d04fb1d91bf601f1efacde28b751 (patch)
treeb3db266471f108f4f3183c9d4fcc5a170c698d30
parentb602c853d891e7b7885058bff76a796c2e47b42e (diff)
downloadgdb-2d2b9592a766d04fb1d91bf601f1efacde28b751.zip
gdb-2d2b9592a766d04fb1d91bf601f1efacde28b751.tar.gz
gdb-2d2b9592a766d04fb1d91bf601f1efacde28b751.tar.bz2
2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
* gas/ia64/group-1.d: New. * gas/ia64/group-1.s: Likewise. * gas/ia64/ia64.exp: Add group-1 to test comdat group.
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/ia64/group-1.d34
-rw-r--r--gas/testsuite/gas/ia64/group-1.s10
-rw-r--r--gas/testsuite/gas/ia64/ia64.exp1
4 files changed, 52 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 66d618b..e9a8475 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/ia64/group-1.d: New.
+ * gas/ia64/group-1.s: Likewise.
+
+ * gas/ia64/ia64.exp: Add group-1 to test comdat group.
+
2004-06-30 James E Wilson <wilson@specifixinc.com>
* gas/ia64/dv-imply.d: Update.
diff --git a/gas/testsuite/gas/ia64/group-1.d b/gas/testsuite/gas/ia64/group-1.d
new file mode 100644
index 0000000..03808c8
--- /dev/null
+++ b/gas/testsuite/gas/ia64/group-1.d
@@ -0,0 +1,34 @@
+#readelf: -Sg
+#name: ia64 group
+
+There are 9 section headers, starting at offset 0x90:
+
+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\] \.text PROGBITS 0000000000000000 00000040
+ 0000000000000010 0000000000000000 AXG 0 0 16
+ \[ 5\] \._foo GROUP 0000000000000000 00000050
+ 0000000000000008 0000000000000004 7 6 4
+ \[ 6\] \.shstrtab STRTAB 0000000000000000 00000058
+ 0000000000000032 0000000000000000 0 0 1
+ \[ 7\] \.symtab SYMTAB 0000000000000000 000002d0
+ 00000000000000a8 0000000000000018 8 7 8
+ \[ 8\] \.strtab STRTAB 0000000000000000 00000378
+ 0000000000000006 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\)
+
+COMDAT group section `\._foo' \[\._foo\] contains 1 sections:
+ \[Index\] Name
+ \[ 4\] \.text
diff --git a/gas/testsuite/gas/ia64/group-1.s b/gas/testsuite/gas/ia64/group-1.s
new file mode 100644
index 0000000..ed7f64f
--- /dev/null
+++ b/gas/testsuite/gas/ia64/group-1.s
@@ -0,0 +1,10 @@
+ .section .text,"axG",@progbits,._foo,comdat
+ .proc _foo#
+_foo:
+ (p6) br.cond.dptk .L37
+.L48:
+.L70:
+.L37:
+.L77:
+.L74:
+ .endp _foo#
diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp
index df9feb0..48c4b50 100644
--- a/gas/testsuite/gas/ia64/ia64.exp
+++ b/gas/testsuite/gas/ia64/ia64.exp
@@ -56,5 +56,6 @@ if [istarget "ia64-*"] then {
run_dump_test "secname"
run_dump_test "unwind"
run_dump_test "alias"
+ run_dump_test "group-1"
}
}