Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so/arch/x86_64 rename the macro
details: https://anonhg.NetBSD.org/src/rev/1885d66c8b6b
branches: trunk
changeset: 355094:1885d66c8b6b
user: christos <christos%NetBSD.org@localhost>
date: Wed Jul 12 17:55:24 2017 +0000
description:
rename the macro
diffstat:
libexec/ld.elf_so/arch/x86_64/mdreloc.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (99 lines):
diff -r e650728c80eb -r 1885d66c8b6b libexec/ld.elf_so/arch/x86_64/mdreloc.c
--- a/libexec/ld.elf_so/arch/x86_64/mdreloc.c Wed Jul 12 17:54:23 2017 +0000
+++ b/libexec/ld.elf_so/arch/x86_64/mdreloc.c Wed Jul 12 17:55:24 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.43 2017/07/12 17:54:23 christos Exp $ */
+/* $NetBSD: mdreloc.c,v 1.44 2017/07/12 17:55:24 christos Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -68,7 +68,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.43 2017/07/12 17:54:23 christos Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.44 2017/07/12 17:55:24 christos Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -91,7 +91,7 @@
static inline int _rtld_relocate_plt_object(const Obj_Entry *,
const Elf_Rela *, Elf_Addr *);
-#define rdbg_symnum(obj, rela) \
+#define rdbg_symname(obj, rela) \
((obj)->strtab + (obj)->symtab[ELF_R_SYM((rela)->r_info)].st_name)
void
@@ -183,7 +183,7 @@
if (*where32 != tmp32)
*where32 = tmp32;
rdbg(("32/32S %s in %s --> %p in %s",
- rdbg_symnum(obj, rela),
+ rdbg_symname(obj, rela),
obj->path, (void *)(uintptr_t)*where32,
defobj->path));
break;
@@ -194,7 +194,7 @@
if (*where64 != tmp64)
*where64 = tmp64;
rdbg(("64 %s in %s --> %p in %s",
- rdbg_symnum(obj, rela),
+ rdbg_symname(obj, rela),
obj->path, (void *)*where64, defobj->path));
break;
case R_TYPE(PC32): /* word32 S + A - P */
@@ -204,7 +204,7 @@
if (*where32 != tmp32)
*where32 = tmp32;
rdbg(("PC32 %s in %s --> %p in %s",
- rdbg_symnum(obj, rela),
+ rdbg_symname(obj, rela),
obj->path, (void *)(unsigned long)*where32,
defobj->path));
break;
@@ -214,7 +214,7 @@
if (*where64 != tmp64)
*where64 = tmp64;
rdbg(("64 %s in %s --> %p in %s",
- rdbg_symnum(obj, rela),
+ rdbg_symname(obj, rela),
obj->path, (void *)*where64, defobj->path));
break;
case R_TYPE(RELATIVE): /* word64 B + A */
@@ -234,7 +234,7 @@
defobj->tlsoffset + rela->r_addend);
rdbg(("TPOFF64 %s in %s --> %p",
- rdbg_symnum(obj, rela),
+ rdbg_symname(obj, rela),
obj->path, (void *)*where64));
break;
@@ -243,7 +243,7 @@
*where64 = (Elf64_Addr)defobj->tlsindex;
rdbg(("DTPMOD64 %s in %s --> %p",
- rdbg_symnum(obj, rela),
+ rdbg_symname(obj, rela),
obj->path, (void *)*where64));
break;
@@ -252,7 +252,7 @@
*where64 = (Elf64_Addr)(def->st_value + rela->r_addend);
rdbg(("DTPOFF64 %s in %s --> %p",
- rdbg_symnum(obj, rela),
+ rdbg_symname(obj, rela),
obj->path, (void *)*where64));
break;
@@ -267,7 +267,7 @@
(u_long)ELF_R_SYM(rela->r_info),
(u_long)ELF_R_TYPE(rela->r_info),
(void *)rela->r_offset, (void *)rela->r_addend,
- (void *)*where64, rdbg_symnum(obj, rela)));
+ (void *)*where64, rdbg_symname(obj, rela)));
_rtld_error("%s: Unsupported relocation type %ld "
"in non-PLT relocations",
obj->path, (u_long) ELF_R_TYPE(rela->r_info));
Home |
Main Index |
Thread Index |
Old Index