about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/dl-machine.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-16 04:22:23 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-16 04:22:23 +0000
commit63c7a7e8a99489497572e0cf81aee5c3bc77d1c2 (patch)
treea398a2750f5a65cdedf9ab10aa4ceb637ec014e2 /sysdeps/powerpc/powerpc64/dl-machine.c
parent115a45a7209e380578d36d83016700c5a2d8252e (diff)
downloadglibc-63c7a7e8a99489497572e0cf81aee5c3bc77d1c2.tar.gz
glibc-63c7a7e8a99489497572e0cf81aee5c3bc77d1c2.tar.xz
glibc-63c7a7e8a99489497572e0cf81aee5c3bc77d1c2.zip
Update.
2003-05-15  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
	Remove sym argument, always use refsym.
	(__process_machine_rela): Adjust callers.
	* sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
	Likewise.
	* sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
	Adjust prototype.
	* sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/dl-machine.c')
-rw-r--r--sysdeps/powerpc/powerpc64/dl-machine.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sysdeps/powerpc/powerpc64/dl-machine.c b/sysdeps/powerpc/powerpc64/dl-machine.c
index bbaedc8335..167af998a7 100644
--- a/sysdeps/powerpc/powerpc64/dl-machine.c
+++ b/sysdeps/powerpc/powerpc64/dl-machine.c
@@ -1,5 +1,5 @@
 /* Machine-dependent ELF dynamic relocation functions.  PowerPC64 version.
-   Copyright (C) 1995,96,97,98,99,2000,01, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1995-2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,22 +27,20 @@ void
 _dl_reloc_overflow (struct link_map *map,
 		   const char *name,
 		   Elf64_Addr *const reloc_addr,
-		   const Elf64_Sym *sym,
 		   const Elf64_Sym *refsym)
 {
   char buffer[128];
   char *t;
-  const Elf64_Sym *errsym = sym ?: refsym;
   t = stpcpy (buffer, name);
   t = stpcpy (t, " reloc at 0x");
   _itoa_word ((unsigned long) reloc_addr, t, 16, 0);
-  if (errsym)
+  if (refsym)
     {
       const char *strtab;
 
       strtab = (const void *) D_PTR (map, l_info[DT_STRTAB]);
       t = stpcpy (t, " for symbol `");
-      t = stpcpy (t, strtab + errsym->st_name);
+      t = stpcpy (t, strtab + refsym->st_name);
       t = stpcpy (t, "'");
     }
   t = stpcpy (t, " out of range");