aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-m32c.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-01-25 21:06:11 +0000
committerDJ Delorie <dj@redhat.com>2008-01-25 21:06:11 +0000
commitc006d697e48452ca44388354d7ce9ade74558039 (patch)
tree81e2f31fb25e74085e59afb778c47ed680f26847 /bfd/elf32-m32c.c
parent7d1e3eba1dbdfe8bab4f2edb424c5271a8e561f6 (diff)
downloadgdb-c006d697e48452ca44388354d7ce9ade74558039.zip
gdb-c006d697e48452ca44388354d7ce9ade74558039.tar.gz
gdb-c006d697e48452ca44388354d7ce9ade74558039.tar.bz2
* elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
Diffstat (limited to 'bfd/elf32-m32c.c')
-rw-r--r--bfd/elf32-m32c.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/elf32-m32c.c b/bfd/elf32-m32c.c
index 20dcf37..dd40541 100644
--- a/bfd/elf32-m32c.c
+++ b/bfd/elf32-m32c.c
@@ -1985,6 +1985,16 @@ m32c_elf_relax_delete_bytes
return TRUE;
}
+/* This is for versions of gcc prior to 4.3. */
+static unsigned int
+_bfd_m32c_elf_eh_frame_address_size (bfd *abfd, asection *sec ATTRIBUTE_UNUSED)
+{
+ if ((elf_elfheader (abfd)->e_flags & EF_M32C_CPU_MASK) == EF_M32C_CPU_M16C)
+ return 2;
+ return 4;
+}
+
+
#define ELF_ARCH bfd_arch_m32c
#define ELF_MACHINE_CODE EM_M32C
@@ -2011,6 +2021,7 @@ m32c_elf_relax_delete_bytes
m32c_elf_finish_dynamic_sections
#define elf_backend_can_gc_sections 1
+#define elf_backend_eh_frame_address_size _bfd_m32c_elf_eh_frame_address_size
#define bfd_elf32_bfd_reloc_type_lookup m32c_reloc_type_lookup
#define bfd_elf32_bfd_reloc_name_lookup m32c_reloc_name_lookup