aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-12 19:13:49 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-12 19:13:49 +0000
commit02fcd12620bbd5305137708afb2a26607fe48a2b (patch)
tree4c8a66194b0b76b7781da358e4a159f7e8ff8c47 /bfd/elf-bfd.h
parent3c38b3df0cc9a8bf6569306867022c8d1b200363 (diff)
downloadgdb-02fcd12620bbd5305137708afb2a26607fe48a2b.zip
gdb-02fcd12620bbd5305137708afb2a26607fe48a2b.tar.gz
gdb-02fcd12620bbd5305137708afb2a26607fe48a2b.tar.bz2
* elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
dynamic section, if there is one. * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field. (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR. (bfd_elf64_swap_dyn_in): Likewise. * elfcode.h (elf_swap_dyn_in): Change type of second parameter to PTR. (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 88e7858..ee4d46c 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -182,6 +182,7 @@ struct elf_size_info {
void (*swap_symbol_out) PARAMS ((bfd *, Elf_Internal_Sym *, PTR));
boolean (*slurp_reloc_table) PARAMS ((bfd *, asection *, asymbol **));
long (*slurp_symbol_table) PARAMS ((bfd *, asymbol **, boolean));
+ void (*swap_dyn_in) PARAMS ((bfd *, const PTR, Elf_Internal_Dyn *));
};
#define elf_symbol_from(ABFD,S) \
@@ -687,7 +688,7 @@ extern void bfd_elf32_swap_phdr_in
extern void bfd_elf32_swap_phdr_out
PARAMS ((bfd *, Elf_Internal_Phdr *, Elf32_External_Phdr *));
extern void bfd_elf32_swap_dyn_in
- PARAMS ((bfd *, const Elf32_External_Dyn *, Elf_Internal_Dyn *));
+ PARAMS ((bfd *, const PTR, Elf_Internal_Dyn *));
extern void bfd_elf32_swap_dyn_out
PARAMS ((bfd *, const Elf_Internal_Dyn *, Elf32_External_Dyn *));
extern boolean bfd_elf32_add_dynamic_entry
@@ -723,7 +724,7 @@ extern void bfd_elf64_swap_phdr_in
extern void bfd_elf64_swap_phdr_out
PARAMS ((bfd *, Elf_Internal_Phdr *, Elf64_External_Phdr *));
extern void bfd_elf64_swap_dyn_in
- PARAMS ((bfd *, const Elf64_External_Dyn *, Elf_Internal_Dyn *));
+ PARAMS ((bfd *, const PTR, Elf_Internal_Dyn *));
extern void bfd_elf64_swap_dyn_out
PARAMS ((bfd *, const Elf_Internal_Dyn *, Elf64_External_Dyn *));
extern boolean bfd_elf64_add_dynamic_entry