summaryrefslogtreecommitdiff
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2007-11-30 09:01:35 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2007-11-30 09:01:35 +0000
commit7aae98c3aa4b3620954e8f06ac2e7807d55e6097 (patch)
tree7a853a44c3fa3d975b81b8483c9fa43c82157f3c /bfd/elf-eh-frame.c
parent8ec9500af7f2b7e91b25d2a2f2950bc4179bcdbe (diff)
downloadbinutils-redhat-7aae98c3aa4b3620954e8f06ac2e7807d55e6097.tar.gz
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.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r--bfd/elf-eh-frame.c3
1 files changed, 2 insertions, 1 deletions
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