aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2010-10-23 18:05:10 +0000
committerMark Mitchell <mark@codesourcery.com>2010-10-23 18:05:10 +0000
commit709001e957fd1ae39f44b1e0690dfca64dddf044 (patch)
tree9121111faa2dcaebe7a87afd1c8a72a85bcdcabb /gas/testsuite
parent0c480dea726658ddeba3e1aa6644f804d4df1432 (diff)
downloadgdb-709001e957fd1ae39f44b1e0690dfca64dddf044.zip
gdb-709001e957fd1ae39f44b1e0690dfca64dddf044.tar.gz
gdb-709001e957fd1ae39f44b1e0690dfca64dddf044.tar.bz2
2010-10-23 Mark Mitchell <mark@codesourcery.com>
* config/obj-elf.c (elf_adjust_symtab): New. Move group section processing here from elf_frob_file. Ensure that group signature symbols have the name of the group. (elf_frob_file): Move group section processing to elf_adjust_symtab. * config/obj-elf.h (elf_adjust_symtab): Declare. (obj_adjust_symtab): Define. * config/tc-arm.c (arm_adjust_symtab): Call elf_adjust_symtab. 2010-10-23 Mark Mitchell <mark@codesourcery.com> * gas/elf/elf.exp: Add group0c test. * gas/elf/group0c.d: New. * gas/elf/group0a.d: Expect ".group" for the name of group sections. * gas/elf/group0b.d: Likewise. * gas/elf/group1a.d: Likewise. * gas/elf/group1b.d: Likewise. * gas/elf/groupautoa.d: Likewise. * gas/elf/groupautob.d: Likewise. * gas/elf/section4.d: Likewise. * gas/ia64/group-1.d: Likewise. Adjust hard-coded constants. 2010-10-22 Mark Mitchell <mark@codesourcery.com> * binutils-all/group-5.d: Expect ".group" for the name of group sections. * binutils-all/strip-2.d: Likewise. 2010-10-23 Mark Mitchell <mark@codesourcery.com> * ld-elf/group10.d: Expect ".group" for the name of group sections. * ld-elf/group2.d: Likewise. * ld-elf/group7.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog14
-rw-r--r--gas/testsuite/gas/elf/elf.exp1
-rw-r--r--gas/testsuite/gas/elf/group0a.d2
-rw-r--r--gas/testsuite/gas/elf/group0b.d2
-rw-r--r--gas/testsuite/gas/elf/group0c.d7
-rw-r--r--gas/testsuite/gas/elf/group1a.d2
-rw-r--r--gas/testsuite/gas/elf/group1b.d2
-rw-r--r--gas/testsuite/gas/elf/groupautoa.d2
-rw-r--r--gas/testsuite/gas/elf/groupautob.d2
-rw-r--r--gas/testsuite/gas/elf/section4.d2
-rw-r--r--gas/testsuite/gas/ia64/group-1.d12
11 files changed, 35 insertions, 13 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index f980f33..e2cf0c2 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,17 @@
+2010-10-23 Mark Mitchell <mark@codesourcery.com>
+
+ * gas/elf/elf.exp: Add group0c test.
+ * gas/elf/group0c.d: New.
+ * gas/elf/group0a.d: Expect ".group" for the name of group
+ sections.
+ * gas/elf/group0b.d: Likewise.
+ * gas/elf/group1a.d: Likewise.
+ * gas/elf/group1b.d: Likewise.
+ * gas/elf/groupautoa.d: Likewise.
+ * gas/elf/groupautob.d: Likewise.
+ * gas/elf/section4.d: Likewise.
+ * gas/ia64/group-1.d: Likewise. Adjust hard-coded constants.
+
2010-10-22 Nick Clifton <nickc@redhat.com>
* gas/all/fwdexp.d: Also look for f8ffffff.
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index 4aa2b2e..5236913 100644
--- a/gas/testsuite/gas/elf/elf.exp
+++ b/gas/testsuite/gas/elf/elf.exp
@@ -104,6 +104,7 @@ if { ([istarget "*-*-*elf*"]
}
run_dump_test "group0a"
run_dump_test "group0b"
+ run_dump_test "group0c"
run_dump_test "group1a"
run_dump_test "group1b"
run_dump_test "groupautoa"
diff --git a/gas/testsuite/gas/elf/group0a.d b/gas/testsuite/gas/elf/group0a.d
index 8aedc0c..e6b9366 100644
--- a/gas/testsuite/gas/elf/group0a.d
+++ b/gas/testsuite/gas/elf/group0a.d
@@ -3,7 +3,7 @@
#source: group0.s
#...
-[ ]*\[.*\][ ]+\.foo_group[ ]+GROUP.*
+[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.foo[ ]+PROGBITS.*[ ]+AXG[ ]+.*
[ ]*\[.*\][ ]+\.bar[ ]+PROGBITS.*[ ]+AG[ ]+.*
diff --git a/gas/testsuite/gas/elf/group0b.d b/gas/testsuite/gas/elf/group0b.d
index 803b8ec..fc74ea6 100644
--- a/gas/testsuite/gas/elf/group0b.d
+++ b/gas/testsuite/gas/elf/group0b.d
@@ -3,7 +3,7 @@
#source: group0.s
#...
-COMDAT group section \[ 1\] `.foo_group' \[.foo_group\] contains 2 sections:
+COMDAT group section \[ 1\] `\.group' \[.foo_group\] contains 2 sections:
[ ]+\[Index\][ ]+Name
[ ]+\[.*\][ ]+.foo
[ ]+\[.*\][ ]+.bar
diff --git a/gas/testsuite/gas/elf/group0c.d b/gas/testsuite/gas/elf/group0c.d
new file mode 100644
index 0000000..dd3ce90
--- /dev/null
+++ b/gas/testsuite/gas/elf/group0c.d
@@ -0,0 +1,7 @@
+#readelf: -sW
+#name: group section name
+#source: group0.s
+
+#...
+.*NOTYPE[ ]+LOCAL[ ]+DEFAULT[ ]+[0-9]+[ ]+\.foo_group
+#pass
diff --git a/gas/testsuite/gas/elf/group1a.d b/gas/testsuite/gas/elf/group1a.d
index a5b3298..27da751 100644
--- a/gas/testsuite/gas/elf/group1a.d
+++ b/gas/testsuite/gas/elf/group1a.d
@@ -3,7 +3,7 @@
#source: group1.s
#...
-[ ]*\[.*\][ ]+\.foo_group[ ]+GROUP.*
+[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AX[ ]+.*
#...
diff --git a/gas/testsuite/gas/elf/group1b.d b/gas/testsuite/gas/elf/group1b.d
index 704752b..405e203 100644
--- a/gas/testsuite/gas/elf/group1b.d
+++ b/gas/testsuite/gas/elf/group1b.d
@@ -3,7 +3,7 @@
#source: group1.s
#...
-COMDAT group section \[ 1\] `.foo_group' \[.foo_group\] contains 1 sections:
+COMDAT group section \[ 1\] `\.group' \[.foo_group\] contains 1 sections:
[ ]+\[Index\][ ]+Name
[ ]+\[.*\][ ]+.text
#pass
diff --git a/gas/testsuite/gas/elf/groupautoa.d b/gas/testsuite/gas/elf/groupautoa.d
index a34c35c..57ef2b7 100644
--- a/gas/testsuite/gas/elf/groupautoa.d
+++ b/gas/testsuite/gas/elf/groupautoa.d
@@ -3,7 +3,7 @@
#source: groupauto.s
#...
-[ ]*\[.*\][ ]+some_group[ ]+GROUP.*
+[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AX[ ]+.*
#...
diff --git a/gas/testsuite/gas/elf/groupautob.d b/gas/testsuite/gas/elf/groupautob.d
index 0ff1007..1bd2110 100644
--- a/gas/testsuite/gas/elf/groupautob.d
+++ b/gas/testsuite/gas/elf/groupautob.d
@@ -3,7 +3,7 @@
#source: groupauto.s
#...
-COMDAT group section \[ 1\] `some_group' \[some_group\] contains 2 sections:
+COMDAT group section \[ 1\] `\.group' \[some_group\] contains 2 sections:
[ ]+\[Index\][ ]+Name
[ ]+\[.*\][ ]+.text
[ ]+\[.*\][ ]+.note.bar
diff --git a/gas/testsuite/gas/elf/section4.d b/gas/testsuite/gas/elf/section4.d
index 5cda69b..f5bab79 100644
--- a/gas/testsuite/gas/elf/section4.d
+++ b/gas/testsuite/gas/elf/section4.d
@@ -2,7 +2,7 @@
#name: label arithmetic with multiple same-name sections
#...
-[ ]*\[.*\][ ]+foo[ ]+GROUP.*
+[ ]*\[.*\][ ]+\.group[ ]+GROUP.*
#...
[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*
#...
diff --git a/gas/testsuite/gas/ia64/group-1.d b/gas/testsuite/gas/ia64/group-1.d
index eef78d9..3c824a7 100644
--- a/gas/testsuite/gas/ia64/group-1.d
+++ b/gas/testsuite/gas/ia64/group-1.d
@@ -8,7 +8,7 @@ Section Headers:
Size EntSize Flags Link Info Align
\[ 0\] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
- \[ 1\] \._foo GROUP 0000000000000000 00000040
+ \[ 1\] \.group GROUP 0000000000000000 00000040
0000000000000008 0000000000000004 7 6 4
\[ 2\] \.text PROGBITS 0000000000000000 00000050
0000000000000000 0000000000000000 AX 0 0 16
@@ -19,14 +19,14 @@ Section Headers:
\[ 5\] \.text PROGBITS 0000000000000000 00000050
0000000000000010 0000000000000000 AXG 0 0 16
\[ 6\] \.shstrtab STRTAB 0000000000000000 00000060
- 0000000000000032 0000000000000000 0 0 1
+ 0000000000000033 0000000000000000 0 0 1
\[ 7\] \.symtab SYMTAB 0000000000000000 000002d8
- 00000000000000a8 0000000000000018 8 7 8
- \[ 8\] \.strtab STRTAB 0000000000000000 00000380
- 0000000000000006 0000000000000000 0 0 1
+ 00000000000000c0 0000000000000018 8 8 8
+ \[ 8\] \.strtab STRTAB 0000000000000000 00000398
+ 000000000000000c 0000000000000000 0 0 1
Key to Flags:
#...
-COMDAT group section \[ 1\] `\._foo' \[\._foo\] contains 1 sections:
+COMDAT group section \[ 1\] `\.group' \[\._foo\] contains 1 sections:
\[Index\] Name
\[ 5\] \.text