aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-or32.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-or32.c')
-rw-r--r--bfd/elf32-or32.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/bfd/elf32-or32.c b/bfd/elf32-or32.c
index 546aa15..7b42c92 100644
--- a/bfd/elf32-or32.c
+++ b/bfd/elf32-or32.c
@@ -1,5 +1,5 @@
/* OR32-specific support for 32-bit ELF
- Copyright 2002, 2004, 2005 Free Software Foundation, Inc.
+ Copyright 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
Contributed by Ivan Guzvinec <ivang@opencores.org>
This file is part of BFD, the Binary File Descriptor library.
@@ -466,6 +466,22 @@ bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
return NULL;
}
+static reloc_howto_type *
+bfd_elf32_bfd_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
+ const char *r_name)
+{
+ unsigned int i;
+
+ for (i = 0;
+ i < sizeof (elf_or32_howto_table) / sizeof (elf_or32_howto_table[0]);
+ i++)
+ if (elf_or32_howto_table[i].name != NULL
+ && strcasecmp (elf_or32_howto_table[i].name, r_name) == 0)
+ return &elf_or32_howto_table[i];
+
+ return NULL;
+}
+
/* Set the howto pointer for an OR32 ELF reloc. */
static void