From ffaef1591165fef922024fdcbc8c1571bf58540a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 28 Sep 2001 12:54:53 +0000 Subject: [PATCH] * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd reloc code using x86_64_reloc_map. --- bfd/ChangeLog | 3 +++ bfd/elf64-x86-64.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 87b9b79a597..6de96e75cd4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2001-09-28 Alan Modra + * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd + reloc code using x86_64_reloc_map. + * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we no longer allocate here. Localise some vars to blocks where they are used. diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 0359b164ac4..decd987019e 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -167,8 +167,7 @@ elf64_x86_64_reloc_type_lookup (abfd, code) i++) { if (x86_64_reloc_map[i].bfd_reloc_val == code) - return &x86_64_elf_howto_table[(int) - x86_64_reloc_map[i].elf_reloc_val]; + return &x86_64_elf_howto_table[i]; } return 0; } -- 2.30.2