aboutsummaryrefslogtreecommitdiff
path: root/bfd/libelf.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-11-18 17:10:42 +0000
committerIan Lance Taylor <ian@airs.com>1993-11-18 17:10:42 +0000
commit643e9fc7683e5df2e66a43576bdaea2ea794e735 (patch)
tree7b20973549762e1c2d3b7f8ee54cf4d155dba68d /bfd/libelf.h
parent7855533586f9dbdce6ef1fc48b5ce5f4fc4e4f32 (diff)
downloadgdb-643e9fc7683e5df2e66a43576bdaea2ea794e735.zip
gdb-643e9fc7683e5df2e66a43576bdaea2ea794e735.tar.gz
gdb-643e9fc7683e5df2e66a43576bdaea2ea794e735.tar.bz2
* libelf.h (struct elf_backend_data): Added fields
elf_backend_sym_is_global and elf_backend_final_write_processing. * elf32-target.h (elf32_bed): Added corresponding initializers. * elf64-target.h (elf64_bed): Likewise.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r--bfd/libelf.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h
index 4d58293..04db170 100644
--- a/bfd/libelf.h
+++ b/bfd/libelf.h
@@ -93,6 +93,13 @@ struct elf_backend_data
void (*elf_info_to_howto_rel) PARAMS ((bfd *, arelent *,
Elf_Internal_Rel *));
+ /* A function to determine whether a symbol is global when
+ partitioning the symbol table into local and global symbols.
+ This should be NULL for most targets, in which case the correct
+ thing will be done. MIPS ELF, at least on the Irix 5, has
+ special requirements. */
+ boolean (*elf_backend_sym_is_global) PARAMS ((bfd *, asymbol *));
+
/* The remaining functions are hooks which are called only if they
are not NULL. */
@@ -141,6 +148,10 @@ struct elf_backend_data
boolean (*elf_backend_section_from_bfd_section)
PARAMS ((bfd *, Elf32_Internal_Shdr *, asection *, int *retval));
+ /* A function to do any final processing needed for the ELF file
+ before writing it out. */
+ void (*elf_backend_final_write_processing) PARAMS ((bfd *));
+
/* The swapping table to use when dealing with ECOFF information.
Used for the MIPS ELF .mdebug section. */
const struct ecoff_debug_swap *elf_backend_ecoff_debug_swap;