This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Add a new test for comdat group
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 1 Jul 2004 17:49:59 -0700
- Subject: PATCH: Add a new test for comdat group
I tried to include the reloc section in comdat group. But my effort
failed with the following testcase on ia64. I will check in this patch
shortly to make sure that any future attempt will pass it.
H.J.
---
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.
--- gas/testsuite/gas/ia64/group-1.d.group 2004-07-01 17:12:51.669142956 -0700
+++ gas/testsuite/gas/ia64/group-1.d 2004-07-01 17:22:06.092415454 -0700
@@ -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
--- gas/testsuite/gas/ia64/group-1.s.group 2004-07-01 17:12:48.389567245 -0700
+++ gas/testsuite/gas/ia64/group-1.s 2004-07-01 17:04:34.412474633 -0700
@@ -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#
--- gas/testsuite/gas/ia64/ia64.exp.group 2004-05-26 23:08:38.000000000 -0700
+++ gas/testsuite/gas/ia64/ia64.exp 2004-07-01 17:15:36.479820875 -0700
@@ -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"
}
}