From 8c946ed5d5af555d95f39630fcb56bfc6b0ce93b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 31 Jan 2005 20:39:11 +0000 Subject: * 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. --- bfd/elfxx-target.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bfd/elfxx-target.h') diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index a9d49c3..baad96d 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -442,6 +442,9 @@ #ifndef elf_backend_ignore_discarded_relocs #define elf_backend_ignore_discarded_relocs NULL #endif +#ifndef elf_backend_eh_frame_address_size +#define elf_backend_eh_frame_address_size _bfd_elf_eh_frame_address_size +#endif #ifndef elf_backend_can_make_relative_eh_frame #define elf_backend_can_make_relative_eh_frame _bfd_elf_can_make_relative #endif @@ -573,6 +576,7 @@ static const struct elf_backend_data elfNN_bed = elf_backend_reloc_type_class, elf_backend_discard_info, elf_backend_ignore_discarded_relocs, + elf_backend_eh_frame_address_size, elf_backend_can_make_relative_eh_frame, elf_backend_can_make_lsda_relative_eh_frame, elf_backend_encode_eh_address, -- cgit v1.1