diff options
author | Nick Clifton <nickc@redhat.com> | 2005-08-08 11:06:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-08-08 11:06:16 +0000 |
commit | 957c6e41daa2c75e9e88c85d0076f475a5810d49 (patch) | |
tree | 232d5f4dfca334cd06eff59157227deefea0d587 /bfd/elfxx-target.h | |
parent | 55db4b870f42b93af44182b86e64c06e331afd82 (diff) | |
download | gdb-957c6e41daa2c75e9e88c85d0076f475a5810d49.zip gdb-957c6e41daa2c75e9e88c85d0076f475a5810d49.tar.gz gdb-957c6e41daa2c75e9e88c85d0076f475a5810d49.tar.bz2 |
PR 1147
elf32-arm.c (bfd_elf32_close_and_cleanup): Define.
(elf32_arm_close_and_cleanup): New function - walk over the sections in the
bfd that is being closed removing them from the list of recorded sections.
(unrecord_section_via_map_over_sections): New helper function.
(record_section_with_arm_elf_section_data): Call bfd_malloc instead of
bfd_alloc. Remove unneeded abfd parameter.
(elf32_arm_new_section_hook): Do not pass bfd to record_section_with_arm_elf_section_data.
elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not already
defined by the target.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r-- | bfd/elfxx-target.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index 624b31c..2c9aa19 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -26,7 +26,9 @@ There are two such structures here: one for big-endian machines and one for little-endian machines. */ +#ifndef bfd_elfNN_close_and_cleanup #define bfd_elfNN_close_and_cleanup _bfd_elf_close_and_cleanup +#endif #define bfd_elfNN_bfd_free_cached_info _bfd_generic_bfd_free_cached_info #ifndef bfd_elfNN_get_section_contents #define bfd_elfNN_get_section_contents _bfd_generic_get_section_contents |