From 7aae98c3aa4b3620954e8f06ac2e7807d55e6097 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 30 Nov 2007 09:01:35 +0000 Subject: bfd/ * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use the ELF header to choose between 32-bit and 64-bit relocation structures. --- bfd/elf-eh-frame.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/elf-eh-frame.c') diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 473e890663..db1b9ea5fb 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -683,7 +683,8 @@ _bfd_elf_discard_section_eh_frame unsigned long r_symndx; #ifdef BFD64 - if (ptr_size == 8) + if (elf_elfheader (abfd)->e_ident[EI_CLASS] + == ELFCLASS64) r_symndx = ELF64_R_SYM (cookie->rel->r_info); else #endif -- cgit v1.2.1