aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-06-22 03:06:29 +0000
committerKen Raeburn <raeburn@cygnus>1993-06-22 03:06:29 +0000
commit268f94aca3f9a46f0469dd521fac0bfb3e66fe75 (patch)
tree53f22078a8c52a05fb443c9456deeeee78279fdf /bfd
parentc48ff89fe1eab6e6ff137892873374443cda818c (diff)
downloadgdb-268f94aca3f9a46f0469dd521fac0bfb3e66fe75.zip
gdb-268f94aca3f9a46f0469dd521fac0bfb3e66fe75.tar.gz
gdb-268f94aca3f9a46f0469dd521fac0bfb3e66fe75.tar.bz2
Use new size-independent versions of elf internal data structures.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf32-target.h2
-rw-r--r--bfd/libelf.h17
2 files changed, 9 insertions, 10 deletions
diff --git a/bfd/elf32-target.h b/bfd/elf32-target.h
index dd96a5a..5ba4027 100644
--- a/bfd/elf32-target.h
+++ b/bfd/elf32-target.h
@@ -51,7 +51,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define bfd_elf32_bfd_make_debug_symbol \
((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
0, /* use_rela_p */
diff --git a/bfd/libelf.h b/bfd/libelf.h
index 1f5d6a4..79a220a 100644
--- a/bfd/libelf.h
+++ b/bfd/libelf.h
@@ -51,8 +51,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
typedef struct
{
asymbol symbol;
- ElfNAME (Internal_Sym) internal_elf_sym;
- ElfNAME (External_Sym) native_elf_sym;
+ Elf_Internal_Sym internal_elf_sym;
/* these are used for the generation of .stabX symbols (?) */
short desc;
unsigned char type;
@@ -63,6 +62,7 @@ typedef struct
PTR any;
}
tc_data;
+ ElfNAME (External_Sym) native_elf_sym;
}
elfNAME (symbol_type);
@@ -71,23 +71,22 @@ elfNAME (symbol_type);
BFD sections to produce ELF sections. */
typedef struct
{
- ElfNAME (Internal_Ehdr) * i_ehdr;
- ElfNAME (Internal_Shdr) * i_shdrp;
+ Elf_Internal_Ehdr * i_ehdr;
+ Elf_Internal_Shdr * i_shdrp;
struct strtab *shstrtab;
int symtab_section;
}
-
elf_sect_thunk;
-struct elfNAME(backend_data)
+struct elf_backend_data
{
int use_rela_p;
int elf_64_p;
enum bfd_architecture arch;
void (*elf_info_to_howto) PARAMS ((bfd *, arelent *,
- ElfNAME (Internal_Rela) *));
+ Elf_Internal_Rela *));
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
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 *));
#define get_elf_backend_data(abfd) \
- ((struct elfNAME (backend_data) *) (abfd)->xvec->backend_data)
+ ((struct elf_backend_data *) (abfd)->xvec->backend_data)
struct strtab
{