Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
+ * 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.
+
* elf32-m68k.c (howto_table): Change src_mask to 0 for all
relocation entries.
/* 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
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)
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)
#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)
\f
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) \
bfd *abfd;
flagword flags;
{
- BFD_ASSERT (!elf_ppc_flags_init (abfd)
+ BFD_ASSERT (!elf_flags_init (abfd)
|| elf_elfheader (abfd)->e_flags == flags);
elf_elfheader (abfd)->e_flags = flags;
- elf_ppc_flags_init (abfd) = true;
+ elf_flags_init (abfd) = true;
return true;
}
if (bfd_get_flavour (obfd) != bfd_target_elf_flavour)
return true;
- BFD_ASSERT (!elf_ppc_flags_init (obfd)
+ BFD_ASSERT (!elf_flags_init (obfd)
|| elf_elfheader (obfd)->e_flags == elf_elfheader (ibfd)->e_flags);
elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags;
- elf_ppc_flags_init (obfd) = true;
+ elf_flags_init (obfd) = true;
return true;
}
new_flags = elf_elfheader (ibfd)->e_flags;
old_flags = elf_elfheader (obfd)->e_flags;
- if (!elf_ppc_flags_init (obfd)) /* First call, no flags set */
+ if (!elf_flags_init (obfd)) /* First call, no flags set */
{
- elf_ppc_flags_init (obfd) = true;
+ elf_flags_init (obfd) = true;
elf_elfheader (obfd)->e_flags = new_flags;
}