2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 2 Jul 2004 02:01:23 +0000 (02:01 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 2 Jul 2004 02:01:23 +0000 (02:01 +0000)
* gas/ia64/group-1.d: New.
* gas/ia64/group-1.s: Likewise.

* gas/ia64/ia64.exp: Add group-1 to test comdat group.

gas/testsuite/ChangeLog
gas/testsuite/gas/ia64/group-1.d [new file with mode: 0644]
gas/testsuite/gas/ia64/group-1.s [new file with mode: 0644]
gas/testsuite/gas/ia64/ia64.exp

index 66d618bd0f5ed46b9979982ee74b63fff18f4a51..e9a8475bde4195a72722994eeb795c4f0ecd8399 100644 (file)
@@ -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 (file)
index 0000000..03808c8
--- /dev/null
@@ -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 (file)
index 0000000..ed7f64f
--- /dev/null
@@ -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#
index df9feb029b43b86ed6f9baa20e7e5bf4cf6b4383..48c4b500ab86ba11dcf1e37718c60bf1d5d66398 100644 (file)
@@ -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"
     }
 }