Module Name: src
Committed By: matt
Date: Fri Mar 21 01:43:33 UTC 2014
Modified Files:
src/libexec/ld.elf_so/arch/vax: mdreloc.c
Log Message:
Improve some of the rdbg messages to print the address of the pltgot slot
being modified.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/libexec/ld.elf_so/arch/vax/mdreloc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ld.elf_so/arch/vax/mdreloc.c
diff -u src/libexec/ld.elf_so/arch/vax/mdreloc.c:1.28 src/libexec/ld.elf_so/arch/vax/mdreloc.c:1.29
--- src/libexec/ld.elf_so/arch/vax/mdreloc.c:1.28 Fri Mar 25 18:07:07 2011
+++ src/libexec/ld.elf_so/arch/vax/mdreloc.c Fri Mar 21 01:43:33 2014
@@ -1,13 +1,13 @@
-/* $NetBSD: mdreloc.c,v 1.28 2011/03/25 18:07:07 joerg Exp $ */
+/* $NetBSD: mdreloc.c,v 1.29 2014/03/21 01:43:33 matt Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.28 2011/03/25 18:07:07 joerg Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.29 2014/03/21 01:43:33 matt Exp $");
#endif /* not lint */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.28 2011/03/25 18:07:07 joerg Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.29 2014/03/21 01:43:33 matt Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -142,7 +142,8 @@ _rtld_relocate_plt_lazy(const Obj_Entry
/* Just relocate the GOT slots pointing into the PLT */
*where += (Elf_Addr)obj->relocbase;
- rdbg(("fixup !main in %s --> %p", obj->path, (void *)*where));
+ rdbg(("lazy fixup pltgot %p in %s --> %p", where, obj->path,
+ (void *)*where));
}
return 0;
@@ -167,7 +168,7 @@ _rtld_relocate_plt_object(const Obj_Entr
new_value = (Elf_Addr)(defobj->relocbase + def->st_value +
rela->r_addend);
- rdbg(("bind now/fixup in %s --> old=%p new=%p",
+ rdbg(("bind now/fixup pltgot %p in %s --> old=%p new=%p", where,
defobj->strtab + def->st_name, (void *)*where, (void *)new_value));
if (*where != new_value)
*where = new_value;