From: Martin Schwidefsky Date: Tue, 18 Dec 2001 16:21:38 +0000 (+0000) Subject: * elf32-s390 (elf_s390_check_relocs): Pass addend to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db7278089697f80a6a1da40bfad515d6f31dd15c;p=binutils-gdb.git * elf32-s390 (elf_s390_check_relocs): Pass addend to gc_record_vtentry. * elf64-s390 (elf_s390_check_relocs): Likewise. Fix by Andreas Jaeger . --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 66023f165bb..1c4faa39dda 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2001-12-18 Martin Schwidefsky + + * elf32-s390 (elf_s390_check_relocs): Pass addend to + gc_record_vtentry. + * elf64-s390 (elf_s390_check_relocs): Likewise. + Fix by Andreas Jaeger . + 2001-12-18 Jason Thorpe * configure.host: Correctly match all NetBSD/mips diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c index 4fd706d3c97..e5d07b17d7f 100644 --- a/bfd/elf32-s390.c +++ b/bfd/elf32-s390.c @@ -868,7 +868,7 @@ elf_s390_check_relocs (abfd, info, sec, relocs) /* This relocation describes which C++ vtable entries are actually used. Record for later use during GC. */ case R_390_GNU_VTENTRY: - if (!_bfd_elf32_gc_record_vtentry (abfd, sec, h, rel->r_offset)) + if (!_bfd_elf32_gc_record_vtentry (abfd, sec, h, rel->r_addend)) return false; break; diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 0e3abf39514..51ab444c447 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -839,7 +839,7 @@ elf_s390_check_relocs (abfd, info, sec, relocs) /* This relocation describes which C++ vtable entries are actually used. Record for later use during GC. */ case R_390_GNU_VTENTRY: - if (!_bfd_elf64_gc_record_vtentry (abfd, sec, h, rel->r_offset)) + if (!_bfd_elf64_gc_record_vtentry (abfd, sec, h, rel->r_addend)) return false; break;