From 2d2b9592a766d04fb1d91bf601f1efacde28b751 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 2 Jul 2004 02:01:23 +0000 Subject: [PATCH] 2004-07-01 H.J. Lu * 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 | 7 +++++++ gas/testsuite/gas/ia64/group-1.d | 34 ++++++++++++++++++++++++++++++++ gas/testsuite/gas/ia64/group-1.s | 10 ++++++++++ gas/testsuite/gas/ia64/ia64.exp | 1 + 4 files changed, 52 insertions(+) create mode 100644 gas/testsuite/gas/ia64/group-1.d create mode 100644 gas/testsuite/gas/ia64/group-1.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 66d618bd0f5..e9a8475bde4 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2004-07-01 H.J. Lu + + * 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 * 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 00000000000..03808c89f3b --- /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 00000000000..ed7f64f9315 --- /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 df9feb029b4..48c4b500ab8 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" } } -- 2.30.2