aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-target.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-04-07 18:12:25 +0000
committerJeff Law <law@redhat.com>1994-04-07 18:12:25 +0000
commit99a6c7613c5c91c5c9b7738b85cc118116afaf65 (patch)
tree41fee94298f15d470c252a130f4d8e96ca4183a3 /bfd/elf64-target.h
parent0b503989f524eabb6edf5090f4d2cdb40d12900d (diff)
downloadgdb-99a6c7613c5c91c5c9b7738b85cc118116afaf65.zip
gdb-99a6c7613c5c91c5c9b7738b85cc118116afaf65.tar.gz
gdb-99a6c7613c5c91c5c9b7738b85cc118116afaf65.tar.bz2
* elfcode.h (elf_set_section_contents): Support calling the backend
function elf_backend_begin_write_processing when just beginning to write an object file. * libelf.h (elf_backend_begin_write_processing): Declare. * elf{32,64}-target.h (elf_backend_begin_write_processing): Provide a default definition. (elf{32,64}_bed): Add elf_backend_begin_write_processing. * elf32-hppa.h (elf_hppa_tc_symbol): Delete extern declaration. (elf_hppa_tc_make_sections): Likewise. * elf32-hppa.c (symext_chain_built): Delete. (symext_chain_size): Renamed from symextn_contents_real_size. (elf32_hppa_backend_{begin,final}_write_processing): New functions. (add_entry_to_symext_chain): New function. (hppa_elf_set_section_contents): Ignore writes to the symbol extension section until it's been rebuilt internally. (hppa_elf_get_section_contents): Symbol extension section is no longer special. (elf_backend_{begin,final}_write_processing): Define. (elf_hppa_tc_make_sections): Simplify now that much code has migrated into elf32_hppa_backend_{being,final}_write_processing.
Diffstat (limited to 'bfd/elf64-target.h')
-rw-r--r--bfd/elf64-target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf64-target.h b/bfd/elf64-target.h
index e32f114..3194073 100644
--- a/bfd/elf64-target.h
+++ b/bfd/elf64-target.h
@@ -94,6 +94,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef elf_backend_section_from_bfd_section
#define elf_backend_section_from_bfd_section 0
#endif
+#ifndef elf_backend_begin_write_processing
+#define elf_backend_begin_write_processing 0
+#endif
#ifndef elf_backend_final_write_processing
#define elf_backend_final_write_processing 0
#endif
@@ -122,6 +125,8 @@ static CONST struct elf_backend_data elf64_bed =
elf_backend_section_from_shdr,
elf_backend_fake_sections,
elf_backend_section_from_bfd_section,
+ elf_backend_begin_write_processing,
+ elf_backend_final_write_processing,
elf_backend_ecoff_debug_swap
};