aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2007-11-30 09:01:35 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2007-11-30 09:01:35 +0000
commit888cab372296966d80fc5d77ec17e1ee226cf56d (patch)
tree3ef6f43a8c79bdf54732ac1c31bb9f64c4a5fb83 /bfd/elf-eh-frame.c
parent9a0910c33e1a6962d475ee0a994fd1f5e446a888 (diff)
downloadgdb-888cab372296966d80fc5d77ec17e1ee226cf56d.zip
gdb-888cab372296966d80fc5d77ec17e1ee226cf56d.tar.gz
gdb-888cab372296966d80fc5d77ec17e1ee226cf56d.tar.bz2
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 473e890..db1b9ea 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