From 709001e957fd1ae39f44b1e0690dfca64dddf044 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sat, 23 Oct 2010 18:05:10 +0000 Subject: 2010-10-23 Mark Mitchell * 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 * 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 * binutils-all/group-5.d: Expect ".group" for the name of group sections. * binutils-all/strip-2.d: Likewise. 2010-10-23 Mark Mitchell * ld-elf/group10.d: Expect ".group" for the name of group sections. * ld-elf/group2.d: Likewise. * ld-elf/group7.d: Likewise. --- ld/testsuite/ChangeLog | 7 +++++++ ld/testsuite/ld-elf/group10.d | 2 +- ld/testsuite/ld-elf/group2.d | 4 ++-- ld/testsuite/ld-elf/group7.d | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index cbba0c0..dbb22bd 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-10-23 Mark Mitchell + + * ld-elf/group10.d: Expect ".group" for the name of group + sections. + * ld-elf/group2.d: Likewise. + * ld-elf/group7.d: Likewise. + 2010-10-21 Joseph Myers * ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d, diff --git a/ld/testsuite/ld-elf/group10.d b/ld/testsuite/ld-elf/group10.d index d22a70a..6fcf83f 100644 --- a/ld/testsuite/ld-elf/group10.d +++ b/ld/testsuite/ld-elf/group10.d @@ -3,7 +3,7 @@ #readelf: -Sg --wide #... -group section \[[ 0-9]+\] `foo_group' \[foo_group\] contains 4 sections: +group section \[[ 0-9]+\] `\.group' \[foo_group\] contains 4 sections: \[Index\] Name \[[ 0-9]+\] \.text.* \[[ 0-9]+\] \.rodata\.str.* diff --git a/ld/testsuite/ld-elf/group2.d b/ld/testsuite/ld-elf/group2.d index 86ca952..664c49a 100644 --- a/ld/testsuite/ld-elf/group2.d +++ b/ld/testsuite/ld-elf/group2.d @@ -7,13 +7,13 @@ # xstormy also uses a non-standard script, putting .data before .text. #... - \[[ 0-9]+\] foo_group[ \t]+GROUP[ \t]+.* + \[[ 0-9]+\] \.group[ \t]+GROUP[ \t]+.* #... \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG.* #... \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG.* #... -COMDAT group section \[[ 0-9]+\] `foo_group' \[foo_group\] contains 2 sections: +COMDAT group section \[[ 0-9]+\] `\.group' \[foo_group\] contains 2 sections: \[Index\] Name \[[ 0-9]+\] .text.* \[[ 0-9]+\] .data.* diff --git a/ld/testsuite/ld-elf/group7.d b/ld/testsuite/ld-elf/group7.d index 401836a..602a4c8 100644 --- a/ld/testsuite/ld-elf/group7.d +++ b/ld/testsuite/ld-elf/group7.d @@ -9,7 +9,7 @@ # well with unique group sections under ld -r. #... -COMDAT group section \[[ 0-9]+\] `foo_group' \[foo_group\] contains 2 sections: +COMDAT group section \[[ 0-9]+\] `\.group' \[foo_group\] contains 2 sections: \[Index\] Name \[[ 0-9]+\] .text.foo \[[ 0-9]+\] .data.foo -- cgit v1.1