diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-04-30 16:47:46 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-04-30 16:47:46 +0000 |
commit | 86654c128fc2efa5bc86018d84673ec12bda507a (patch) | |
tree | 023ae204f1445dc5e4edf792fb7542c52ff8e2a7 /gas/testsuite | |
parent | 45c5e9ed661882b817374a636db04352dd875cec (diff) | |
download | gdb-86654c128fc2efa5bc86018d84673ec12bda507a.zip gdb-86654c128fc2efa5bc86018d84673ec12bda507a.tar.gz gdb-86654c128fc2efa5bc86018d84673ec12bda507a.tar.bz2 |
gas/
2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (get_section): New function.
(obj_elf_change_section): Support multiple sections with same
name.
gas/testsuite/
2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/elf.exp: Remove group1, add group1a and group1b for
section group.
* gas/elf/group1a.d: New file.
* gas/elf/group1b.d: Likewise.
* gas/elf/group1.e: Removed.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/group1.e | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/group1a.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/group1b.d | 9 |
5 files changed, 31 insertions, 8 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 70b65bc..c728672 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2004-04-30 H.J. Lu <hongjiu.lu@intel.com> + + * gas/elf/elf.exp: Remove group1, add group1a and group1b for + section group. + + * gas/elf/group1a.d: New file. + * gas/elf/group1b.d: Likewise. + + * gas/elf/group1.e: Removed. + 2004-04-30 Nick Clifton <nickc@redhat.com> * gas/arm/reg-alias.s: New file: Test case sensitive register diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index e087fba..4680dce 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -50,7 +50,8 @@ if { ([istarget "*-*-elf*"] run_dump_test "ehopt0" run_dump_test "group0a" run_dump_test "group0b" - run_list_test "group1" "" "" "" + run_dump_test "group1a" + run_dump_test "group1b" run_dump_test "section0" run_dump_test "section1" run_list_test "section2" "$target_machine" "-al" "" diff --git a/gas/testsuite/gas/elf/group1.e b/gas/testsuite/gas/elf/group1.e deleted file mode 100644 index d4c4003..0000000 --- a/gas/testsuite/gas/elf/group1.e +++ /dev/null @@ -1,7 +0,0 @@ - -Symbol table '.symtab' contains 4 entries: - Num: Value[ ]* Size Type Bind Vis Ndx Name - 0: 0+0 0 NOTYPE LOCAL DEFAULT UND - 1: 0+0 0 SECTION LOCAL DEFAULT 1 - 2: 0+0 0 SECTION LOCAL DEFAULT 2 - 3: 0+0 0 SECTION LOCAL DEFAULT 3 diff --git a/gas/testsuite/gas/elf/group1a.d b/gas/testsuite/gas/elf/group1a.d new file mode 100644 index 0000000..2db4033 --- /dev/null +++ b/gas/testsuite/gas/elf/group1a.d @@ -0,0 +1,10 @@ +#readelf: -SW +#name: group section with multiple sections of same name +#source: group1.s + +#... +[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AX[ ]+.* +#... +[ ]*\[.*\][ ]+\.text[ ]+PROGBITS.*[ ]+AXG[ ]+.* +[ ]*\[.*\][ ]+\.foo_group[ ]+GROUP.* +#pass diff --git a/gas/testsuite/gas/elf/group1b.d b/gas/testsuite/gas/elf/group1b.d new file mode 100644 index 0000000..c7e84e8 --- /dev/null +++ b/gas/testsuite/gas/elf/group1b.d @@ -0,0 +1,9 @@ +#readelf: -g +#name: group section with multiple sections of same name +#source: group1.s + +#... +COMDAT group section `.foo_group' \[.foo_group\] contains 1 sections: +[ ]+\[Index\][ ]+Name +[ ]+\[.*\][ ]+.text +#pass |