aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-11 16:27:24 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-11 16:27:24 +0000
commit761f377fecdc962ad40882e3a65df6cb12906af6 (patch)
tree9fec93f7ff14bc75fa8697eedaa1f4c4e139056c /bfd/elf-bfd.h
parenta02716671a11c6dd811094e4a0625383056042b3 (diff)
downloadgdb-761f377fecdc962ad40882e3a65df6cb12906af6.zip
gdb-761f377fecdc962ad40882e3a65df6cb12906af6.tar.gz
gdb-761f377fecdc962ad40882e3a65df6cb12906af6.tar.bz2
* elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
(struct elf_obj_tdata): Rename ppc_flags_init field to flags_init. (elf_flags_init): Rename from elf_ppc_flags_init. * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not elf_ppc_flags_init. (ppc_elf_copy_private_bfd_data): Likewise. (ppc_elf_merge_private_bfd_data): Likewise.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index e7baaa9..75c8c5d 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -441,7 +441,8 @@ struct elf_backend_data
/* Information stored for each BFD section in an ELF file. This
structure is allocated by elf_new_section_hook. */
-struct bfd_elf_section_data {
+struct bfd_elf_section_data
+{
/* The ELF header for this section. */
Elf_Internal_Shdr this_hdr;
/* The ELF header for the reloc section associated with this
@@ -464,6 +465,8 @@ struct bfd_elf_section_data {
record the dynamic symbol index for a section symbol
corresponding to this section. */
long dynindx;
+ /* A pointer available for the processor specific ELF backend. */
+ PTR tdata;
};
#define elf_section_data(sec) ((struct bfd_elf_section_data*)sec->used_by_bfd)
@@ -532,8 +535,8 @@ struct elf_obj_tdata
find_nearest_line. */
struct mips_elf_find_line *find_line_info;
- /* Used by PowerPC to determine if the e_flags field has been intiialized */
- boolean ppc_flags_init;
+ /* Used to determine if the e_flags field has been initialized */
+ boolean flags_init;
};
#define elf_tdata(bfd) ((bfd) -> tdata.elf_obj_data)
@@ -553,11 +556,12 @@ struct elf_obj_tdata
#define elf_local_got_offsets(bfd) (elf_tdata(bfd) -> local_got_offsets)
#define elf_dt_needed_name(bfd) (elf_tdata(bfd) -> dt_needed_name)
#define elf_bad_symtab(bfd) (elf_tdata(bfd) -> bad_symtab)
-#define elf_ppc_flags_init(bfd) (elf_tdata(bfd) -> ppc_flags_init)
+#define elf_flags_init(bfd) (elf_tdata(bfd) -> flags_init)
extern char * bfd_elf_string_from_elf_section PARAMS ((bfd *, unsigned, unsigned));
extern char * bfd_elf_get_str_section PARAMS ((bfd *, unsigned));
+extern boolean _bfd_elf_print_private_bfd_data PARAMS ((bfd *, PTR));
extern void bfd_elf_print_symbol PARAMS ((bfd *, PTR, asymbol *,
bfd_print_symbol_type));
#define elf_string_from_elf_strtab(abfd,strindex) \