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/hppa Trailing whitespace
details: https://anonhg.NetBSD.org/src/rev/da4d717a5084
branches: trunk
changeset: 932512:da4d717a5084
user: skrll <skrll%NetBSD.org@localhost>
date: Sun May 10 06:42:38 2020 +0000
description:
Trailing whitespace
diffstat:
libexec/ld.elf_so/arch/hppa/hppa_reloc.c | 52 ++++++++++++++++----------------
libexec/ld.elf_so/arch/hppa/rtld_start.S | 10 +++---
2 files changed, 31 insertions(+), 31 deletions(-)
diffs (237 lines):
diff -r eac3a9a7a0ad -r da4d717a5084 libexec/ld.elf_so/arch/hppa/hppa_reloc.c
--- a/libexec/ld.elf_so/arch/hppa/hppa_reloc.c Sun May 10 06:38:24 2020 +0000
+++ b/libexec/ld.elf_so/arch/hppa/hppa_reloc.c Sun May 10 06:42:38 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hppa_reloc.c,v 1.45 2017/08/10 19:03:26 joerg Exp $ */
+/* $NetBSD: hppa_reloc.c,v 1.46 2020/05/10 06:42:38 skrll Exp $ */
/*-
* Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hppa_reloc.c,v 1.45 2017/08/10 19:03:26 joerg Exp $");
+__RCSID("$NetBSD: hppa_reloc.c,v 1.46 2020/05/10 06:42:38 skrll Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -89,10 +89,10 @@
}
static __inline void
-fic(void *addr)
-{
+fic(void *addr)
+{
__asm volatile("fic %%r0(%%sr0,%0)" : : "r" (addr));
-}
+}
static __inline void
sync(void)
@@ -128,7 +128,7 @@
} hppa_plabel;
/*
- * For now allocated PLABEL structures are tracked on a
+ * For now allocated PLABEL structures are tracked on a
* singly linked list. This maybe should be revisited.
*/
static SLIST_HEAD(hppa_plabel_head, _hppa_plabel) hppa_plabel_list
@@ -151,13 +151,13 @@
* This bootstraps the dynamic linker by relocating its GOT.
* On the hppa, unlike on other architectures, static strings
* are found through the GOT. Static strings are essential
- * for RTLD_DEBUG, and I suspect they're used early even when
+ * for RTLD_DEBUG, and I suspect they're used early even when
* !defined(RTLD_DEBUG), making relocating the GOT essential.
*
* It gets worse. Relocating the GOT doesn't mean just walking
* it and adding the relocbase to all of the entries. You must
- * find and use the GOT relocations, since those RELA relocations
- * have the necessary addends - the GOT comes initialized as
+ * find and use the GOT relocations, since those RELA relocations
+ * have the necessary addends - the GOT comes initialized as
* zeroes.
*/
void
@@ -176,7 +176,7 @@
/*
* Process the DYNAMIC section, looking for the non-PLT relocations.
- */
+ */
relafirst = NULL;
relasz = 0;
symtab = NULL;
@@ -213,11 +213,11 @@
switch (ELF_R_TYPE(rela->r_info)) {
case R_TYPE(DIR32):
if (symnum == 0)
- store_ptr(where,
+ store_ptr(where,
relocbase + rela->r_addend);
else {
sym = symtab + symnum;
- store_ptr(where,
+ store_ptr(where,
relocbase + rela->r_addend + sym->st_value);
}
break;
@@ -235,7 +235,7 @@
* relocations have been done.
*/
if (symnum == 0)
- *((Elf_Addr *)where) =
+ *((Elf_Addr *)where) =
relocbase + rela->r_addend;
else
plabel_relocs[nplabel_relocs++] = rela;
@@ -251,7 +251,7 @@
rela = plabel_relocs[i];
where = (void *)(relocbase + rela->r_offset);
sym = symtab + ELF_R_SYM(rela->r_info);
-
+
plabel = &hppa_plabel_pre[hppa_plabel_pre_next++];
plabel->hppa_plabel_pc = (Elf_Addr)
@@ -261,7 +261,7 @@
SLIST_INSERT_HEAD(&hppa_plabel_list, plabel, hppa_plabel_next);
*((Elf_Addr *)where) = (Elf_Addr)(RTLD_MAKE_PLABEL(plabel));
}
-
+
#if defined(RTLD_DEBUG_HPPA)
for (rela = relafirst; rela < relalim; rela++) {
where = (void *)(relocbase + rela->r_offset);
@@ -304,9 +304,9 @@
}
/*
- * This allocates a PLABEL. If called with a non-NULL def, the
+ * This allocates a PLABEL. If called with a non-NULL def, the
* plabel is for the function associated with that definition
- * in the defining object defobj, plus the given addend. If
+ * in the defining object defobj, plus the given addend. If
* called with a NULL def, the plabel is for the function at
* the (unrelocated) address in addend in the object defobj.
*/
@@ -318,7 +318,7 @@
hppa_plabel *plabel;
if (def != NULL) {
-
+
/*
* We assume that symbols of type STT_NOTYPE
* are undefined. Return NULL for these.
@@ -329,7 +329,7 @@
/* Otherwise assert that this symbol must be a function. */
assert(ELF_ST_TYPE(def->st_info) == STT_FUNC);
- func_pc = (Elf_Addr)(defobj->relocbase + def->st_value +
+ func_pc = (Elf_Addr)(defobj->relocbase + def->st_value +
addend);
} else
func_pc = (Elf_Addr)(defobj->relocbase + addend);
@@ -370,7 +370,7 @@
const void *
_rtld_function_descriptor_function(const void *addr)
{
- return (RTLD_IS_PLABEL(addr) ?
+ return (RTLD_IS_PLABEL(addr) ?
(const void *) RTLD_GET_PLABEL(addr)->hppa_plabel_pc :
addr);
}
@@ -383,7 +383,7 @@
assert(got[-2] == PLT_STUB_MAGIC1);
assert(got[-1] == PLT_STUB_MAGIC2);
-
+
__rtld_setup_hppa_pltgot(obj, got);
fdc(&got[-2]);
@@ -627,7 +627,7 @@
rdbg(("lazy bind %s(%p) --> old=(%p,%p) new=(%p,%p)",
obj->path,
(void *)where,
- (void *)where[0], (void *)where[1],
+ (void *)where[0], (void *)where[1],
(void *)func_pc, (void *)func_sl));
/*
@@ -678,7 +678,7 @@
rdbg(("bind now/fixup in %s --> old=(%p,%p) new=(%p,%p)",
defobj->strtab + def->st_name,
- (void *)where[0], (void *)where[1],
+ (void *)where[0], (void *)where[1],
(void *)func_pc, (void *)func_sl));
}
/*
@@ -703,11 +703,11 @@
int err;
rela = (const Elf_Rela *)((const char *)obj->pltrela + reloff);
-
+
assert(ELF_R_SYM(rela->r_info) != 0);
_rtld_shared_enter();
- err = _rtld_relocate_plt_object(obj, rela, &new_value);
+ err = _rtld_relocate_plt_object(obj, rela, &new_value);
if (err)
_rtld_die();
_rtld_shared_exit();
@@ -719,7 +719,7 @@
_rtld_relocate_plt_objects(const Obj_Entry *obj)
{
const Elf_Rela *rela = obj->pltrela;
-
+
for (; rela < obj->pltrelalim; rela++) {
if (_rtld_relocate_plt_object(obj, rela, NULL) < 0)
return -1;
diff -r eac3a9a7a0ad -r da4d717a5084 libexec/ld.elf_so/arch/hppa/rtld_start.S
--- a/libexec/ld.elf_so/arch/hppa/rtld_start.S Sun May 10 06:38:24 2020 +0000
+++ b/libexec/ld.elf_so/arch/hppa/rtld_start.S Sun May 10 06:42:38 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld_start.S,v 1.12 2012/01/06 10:38:57 skrll Exp $ */
+/* $NetBSD: rtld_start.S,v 1.13 2020/05/10 06:42:38 skrll Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,10 +37,10 @@
ENTRY($rtld_start,HPPA_FRAME_SIZE)
/* Start stack calling convention. */
- copy %r3, %r1
+ copy %r3, %r1
copy %sp, %r3
stw,ma %r1, HPPA_FRAME_SIZE(%sp)
-
+
/*
* Save our single argument, the ps_strings pointer. We'll need this
* twice later: once to call _rtld, and again to transfer to the
@@ -49,7 +49,7 @@
stw %arg0, HPPA_FRAME_ARG(0)(%r3)
/*
- * We can't move to C until we relocate at least the
+ * We can't move to C until we relocate at least the
* Global Offset Table. Even finding the GOT is tricky
* without inadvertently causing the linker to make
* relocations for this part of the text segment.
@@ -158,7 +158,7 @@
ENTRY(_rtld_bind_start,HPPA_FRAME_SIZE)
/* Start stack calling convention. */
- copy %r3, %r1
+ copy %r3, %r1
copy %sp, %r3
stw,ma %r1, HPPA_FRAME_SIZE(%sp)
Home |
Main Index |
Thread Index |
Old Index