aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2001-12-18 16:21:38 +0000
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2001-12-18 16:21:38 +0000
commitdb7278089697f80a6a1da40bfad515d6f31dd15c (patch)
tree0e67e38a49853a61a8f036f62d1ae9ca22bde23e
parent43521d43fc4d2a6d79befb47275f0f005d4783cf (diff)
downloadgdb-db7278089697f80a6a1da40bfad515d6f31dd15c.zip
gdb-db7278089697f80a6a1da40bfad515d6f31dd15c.tar.gz
gdb-db7278089697f80a6a1da40bfad515d6f31dd15c.tar.bz2
* elf32-s390 (elf_s390_check_relocs): Pass addend to
gc_record_vtentry. * elf64-s390 (elf_s390_check_relocs): Likewise. Fix by Andreas Jaeger <aj@suse.de>.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf32-s390.c2
-rw-r--r--bfd/elf64-s390.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 66023f1..1c4faa3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2001-12-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
+
+ * elf32-s390 (elf_s390_check_relocs): Pass addend to
+ gc_record_vtentry.
+ * elf64-s390 (elf_s390_check_relocs): Likewise.
+ Fix by Andreas Jaeger <aj@suse.de>.
+
2001-12-18 Jason Thorpe <thorpej@wasabisystems.com>
* configure.host: Correctly match all NetBSD/mips
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c
index 4fd706d..e5d07b1 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 0e3abf3..51ab444 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;