aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-09 13:12:19 +0000
committerAlan Modra <amodra@gmail.com>2001-10-09 13:12:19 +0000
commit945906ff86c2abf0f631417db3baa2cce93196f5 (patch)
treec7c71a384922f9d69a5e2b7f3aa5754ae6c93e02 /bfd/elf-bfd.h
parent05caa641ed70c3ab6bfbf0fa0e00d80506484ba3 (diff)
downloadgdb-945906ff86c2abf0f631417db3baa2cce93196f5.zip
gdb-945906ff86c2abf0f631417db3baa2cce93196f5.tar.gz
gdb-945906ff86c2abf0f631417db3baa2cce93196f5.tar.bz2
* elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
"group_name". (elf_group_name): Define. (elf_next_in_group): Define. * elf.c: Make use of elf_group_name and elf_next_in_group throughout. (setup_group): Don't use sec->lineno for SHT_GROUP section to store first member section; Instead use elf_next_in_group. (bfd_section_from_shdr): Likewise. (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 50c8b2b..fdb69c6 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -816,7 +816,7 @@ struct bfd_elf_section_data
PTR merge_info;
/* Group name, if this section is part of a group. */
- const char *group;
+ const char *group_name;
/* A linked list of sections in the group. Circular when used by
the linker. */
@@ -830,6 +830,8 @@ struct bfd_elf_section_data
};
#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 get_elf_backend_data(abfd) \
((struct elf_backend_data *) (abfd)->xvec->backend_data)