diff options
author | Alan Modra <amodra@gmail.com> | 2008-09-28 13:30:35 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-09-28 13:30:35 +0000 |
commit | 9659de1cb3549b08d49ab6652a6569a7408b8361 (patch) | |
tree | b3bef282dc65f3e31279fe35641e33decbdd3af6 /bfd/elf.c | |
parent | 119f42450026294aa95b7dff3fe48bf76102602f (diff) | |
download | gdb-9659de1cb3549b08d49ab6652a6569a7408b8361.zip gdb-9659de1cb3549b08d49ab6652a6569a7408b8361.tar.gz gdb-9659de1cb3549b08d49ab6652a6569a7408b8361.tar.bz2 |
* elf.c (_bfd_elf_init_private_section_data): Tweak union copy.
(bfd_section_from_shdr): Don't change SHT_GROUP section name.
* elflink.c (section_signature): New function.
(_bfd_elf_section_already_linked): Use it.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1863,14 +1863,8 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex) return TRUE; case SHT_GROUP: - /* We need a BFD section for objcopy and relocatable linking, - and it's handy to have the signature available as the section - name. */ if (! IS_VALID_GROUP_SECTION_HEADER (hdr)) return FALSE; - name = group_signature (abfd, hdr); - if (name == NULL) - return FALSE; if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex)) return FALSE; if (hdr->contents != NULL) @@ -6019,7 +6013,7 @@ _bfd_elf_init_private_section_data (bfd *ibfd, if (elf_section_flags (isec) & SHF_GROUP) elf_section_flags (osec) |= SHF_GROUP; elf_next_in_group (osec) = elf_next_in_group (isec); - elf_group_name (osec) = elf_group_name (isec); + elf_section_data (osec)->group = elf_section_data (isec)->group; } } |