diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-04 01:05:21 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-04 01:05:21 +0000 |
commit | b885599bed26fea1bd7f732b4152f92bf425bf85 (patch) | |
tree | 618dd9e670c3220c4b87b56db3241d85d0c0329f /bfd/elf-bfd.h | |
parent | 90937f86aae6f5741008ccb551ac7cb3aad86ba3 (diff) | |
download | gdb-b885599bed26fea1bd7f732b4152f92bf425bf85.zip gdb-b885599bed26fea1bd7f732b4152f92bf425bf85.tar.gz gdb-b885599bed26fea1bd7f732b4152f92bf425bf85.tar.bz2 |
* elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
(bfd_section_from_shdr): Likewise. Set section name of group
sections from signature.
(group_signature): Split out from setup_group. Ensure symbol table
is available.
(bfd_elf_discard_group): New function.
(_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
.gnu.linkonce* sections if they are members of a group.
(set_group_contents): Set GRP_COMDAT flag.
* section.c (bfd_discard_group): New function.
* bfd-in.h (bfd_elf_discard_group): Declare.
* bfd-in2.h: Regenerate.
* elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
(elf_linkonce_p): Define.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index d771840..47bb689 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -926,11 +926,15 @@ struct bfd_elf_section_data /* Nonzero if this section uses RELA relocations, rather than REL. */ unsigned int use_rela_p:1; + + /* Nonzero when a group is COMDAT. */ + unsigned int linkonce_p:1; }; #define elf_section_data(sec) ((struct bfd_elf_section_data*)sec->used_by_bfd) #define elf_group_name(sec) (elf_section_data(sec)->group_name) #define elf_next_in_group(sec) (elf_section_data(sec)->next_in_group) +#define elf_linkonce_p(sec) (elf_section_data(sec)->linkonce_p) /* Return true if section has been discarded. */ #define elf_discarded_section(sec) \ |