aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-s390.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-24 01:38:31 +0000
committerAlan Modra <amodra@gmail.com>2001-09-24 01:38:31 +0000
commitf51e552e0e058cee7ac698cbd8aaac033607dd86 (patch)
tree2690c4f299f4b78fd68bcbdb6f06114b798850bc /bfd/elf32-s390.c
parent02ca6eb41d9c75a33dc28d826353646e919a298f (diff)
downloadgdb-f51e552e0e058cee7ac698cbd8aaac033607dd86.zip
gdb-f51e552e0e058cee7ac698cbd8aaac033607dd86.tar.gz
gdb-f51e552e0e058cee7ac698cbd8aaac033607dd86.tar.bz2
* elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
reloc rather than just the type. (_bfd_elf_reloc_type_class): Likewise. * elf.c (_bfd_elf_reloc_type_class): Likewise. * elf32-arm.h (elf32_arm_reloc_type_class): Likewise. * elf32-cris.c (elf_cris_reloc_type_class): Likewise. * elf32-i386.c (elf_i386_reloc_type_class): Likewise. * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise. * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise. * elf32-s390.c (elf_s390_reloc_type_class): Likewise. * elf32-sh.c (sh_elf_reloc_type_class): Likewise. * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise. * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise. * elf64-s390.c (elf_s390_reloc_type_class): Likewise. * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise. * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise. * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise. * elflink.h: Formatting fixes. (elf_link_sort_relocs): Make "count" and "size" bfd_size_type. Call bfd_zmalloc rather than calloc. Remove unnecessary cast of o->contents to PTR. Update call to elf_backend_reloc_type_class.
Diffstat (limited to 'bfd/elf32-s390.c')
-rw-r--r--bfd/elf32-s390.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c
index 088d5d1..73db3f7 100644
--- a/bfd/elf32-s390.c
+++ b/bfd/elf32-s390.c
@@ -56,7 +56,8 @@ static boolean elf_s390_finish_dynamic_symbol
static boolean elf_s390_finish_dynamic_sections
PARAMS ((bfd *, struct bfd_link_info *));
static boolean elf_s390_object_p PARAMS ((bfd *));
-static enum elf_reloc_type_class elf_s390_reloc_type_class PARAMS ((int));
+static enum elf_reloc_type_class elf_s390_reloc_type_class
+ PARAMS ((const Elf_Internal_Rela *));
#define USE_RELA 1 /* We want RELA relocations, not REL. */
@@ -2139,10 +2140,10 @@ elf_s390_object_p (abfd)
}
static enum elf_reloc_type_class
-elf_s390_reloc_type_class (type)
- int type;
+elf_s390_reloc_type_class (rela)
+ const Elf_Internal_Rela *rela;
{
- switch (type)
+ switch ((int) ELF32_R_TYPE (rela->r_info))
{
case R_390_RELATIVE:
return reloc_class_relative;