diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2005-01-31 20:39:11 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2005-01-31 20:39:11 +0000 |
commit | 8c946ed5d5af555d95f39630fcb56bfc6b0ce93b (patch) | |
tree | 65cab0a41c020d51a982aef8b506199ec171ea51 /bfd/elfxx-mips.h | |
parent | * readelf.c (eh_addr_size): New variable. (diff) | |
download | binutils-gdb-8c946ed5d5af555d95f39630fcb56bfc6b0ce93b.tar.gz binutils-gdb-8c946ed5d5af555d95f39630fcb56bfc6b0ce93b.tar.bz2 binutils-gdb-8c946ed5d5af555d95f39630fcb56bfc6b0ce93b.zip |
* elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size.
(_bfd_elf_eh_frame_address_size): Declare.
* elfxx-target.h (elf_backend_eh_frame_address_size): Define a default.
(elfNN_bed): Initialize elf_backend_eh_frame_address_size.
* elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare.
(elf_backend_eh_frame_address_size): Define.
* elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address
size from the new backend hook.
(_bfd_elf_write_section_eh_frame): Likewise.
(_bfd_elf_eh_frame_address_size): New function.
Diffstat (limited to 'bfd/elfxx-mips.h')
-rw-r--r-- | bfd/elfxx-mips.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elfxx-mips.h b/bfd/elfxx-mips.h index 0a684d90867..de48c63be8c 100644 --- a/bfd/elfxx-mips.h +++ b/bfd/elfxx-mips.h @@ -24,6 +24,8 @@ extern bfd_boolean _bfd_mips_elf_new_section_hook (bfd *, asection *); extern void _bfd_mips_elf_symbol_processing (bfd *, asymbol *); +extern unsigned int _bfd_mips_elf_eh_frame_address_size + (bfd *, asection *); extern bfd_boolean _bfd_mips_elf_name_local_section_symbols (bfd *); extern bfd_boolean _bfd_mips_elf_section_processing @@ -124,3 +126,4 @@ extern struct bfd_elf_special_section const _bfd_mips_elf_special_sections[]; #define elf_backend_name_local_section_symbols \ _bfd_mips_elf_name_local_section_symbols #define elf_backend_special_sections _bfd_mips_elf_special_sections +#define elf_backend_eh_frame_address_size _bfd_mips_elf_eh_frame_address_size |