Use new size-independent versions of elf internal data structures.

This commit is contained in:
Ken Raeburn
1993-06-22 03:06:29 +00:00
parent c48ff89fe1
commit 268f94aca3
2 changed files with 9 additions and 10 deletions

View File

@ -51,7 +51,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define bfd_elf32_bfd_make_debug_symbol \ #define bfd_elf32_bfd_make_debug_symbol \
((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr) ((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
static CONST struct elf32_backend_data elf32_bed = static CONST struct elf_backend_data elf32_bed =
{ {
#ifdef USE_REL #ifdef USE_REL
0, /* use_rela_p */ 0, /* use_rela_p */

View File

@ -51,8 +51,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
typedef struct typedef struct
{ {
asymbol symbol; asymbol symbol;
ElfNAME (Internal_Sym) internal_elf_sym; Elf_Internal_Sym internal_elf_sym;
ElfNAME (External_Sym) native_elf_sym;
/* these are used for the generation of .stabX symbols (?) */ /* these are used for the generation of .stabX symbols (?) */
short desc; short desc;
unsigned char type; unsigned char type;
@ -63,6 +62,7 @@ typedef struct
PTR any; PTR any;
} }
tc_data; tc_data;
ElfNAME (External_Sym) native_elf_sym;
} }
elfNAME (symbol_type); elfNAME (symbol_type);
@ -71,23 +71,22 @@ elfNAME (symbol_type);
BFD sections to produce ELF sections. */ BFD sections to produce ELF sections. */
typedef struct typedef struct
{ {
ElfNAME (Internal_Ehdr) * i_ehdr; Elf_Internal_Ehdr * i_ehdr;
ElfNAME (Internal_Shdr) * i_shdrp; Elf_Internal_Shdr * i_shdrp;
struct strtab *shstrtab; struct strtab *shstrtab;
int symtab_section; int symtab_section;
} }
elf_sect_thunk; elf_sect_thunk;
struct elfNAME(backend_data) struct elf_backend_data
{ {
int use_rela_p; int use_rela_p;
int elf_64_p; int elf_64_p;
enum bfd_architecture arch; enum bfd_architecture arch;
void (*elf_info_to_howto) PARAMS ((bfd *, arelent *, void (*elf_info_to_howto) PARAMS ((bfd *, arelent *,
ElfNAME (Internal_Rela) *)); Elf_Internal_Rela *));
void (*elf_info_to_howto_rel) PARAMS ((bfd *, arelent *, void (*elf_info_to_howto_rel) PARAMS ((bfd *, arelent *,
ElfNAME (Internal_Rel) *)); Elf_Internal_Rel *));
/* @@ I really don't think this should be here. I don't know what /* @@ I really don't think this should be here. I don't know what
global_sym is supposed to be used for, but I doubt it's something global_sym is supposed to be used for, but I doubt it's something
@ -138,7 +137,7 @@ extern void bfd_elf32_no_info_to_howto PARAMS ((bfd *, arelent *,
Elf32_Internal_Rela *)); Elf32_Internal_Rela *));
#define get_elf_backend_data(abfd) \ #define get_elf_backend_data(abfd) \
((struct elfNAME (backend_data) *) (abfd)->xvec->backend_data) ((struct elf_backend_data *) (abfd)->xvec->backend_data)
struct strtab struct strtab
{ {