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/sh3 Add last_symnum, move up def and ...
details: https://anonhg.NetBSD.org/src/rev/280aede8d017
branches: trunk
changeset: 354540:280aede8d017
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jun 20 13:45:20 2017 +0000
description:
Add last_symnum, move up def and defobj.
diffstat:
libexec/ld.elf_so/arch/sh3/mdreloc.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 62b510ecd668 -r 280aede8d017 libexec/ld.elf_so/arch/sh3/mdreloc.c
--- a/libexec/ld.elf_so/arch/sh3/mdreloc.c Tue Jun 20 13:24:03 2017 +0000
+++ b/libexec/ld.elf_so/arch/sh3/mdreloc.c Tue Jun 20 13:45:20 2017 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: mdreloc.c,v 1.33 2017/06/19 11:57:02 joerg Exp $ */
+/* $NetBSD: mdreloc.c,v 1.34 2017/06/20 13:45:20 joerg Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.33 2017/06/19 11:57:02 joerg Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.34 2017/06/20 13:45:20 joerg Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -52,11 +52,12 @@
_rtld_relocate_nonplt_objects(Obj_Entry *obj)
{
const Elf_Rela *rela;
+ const Elf_Sym *def = NULL;
+ const Obj_Entry *defobj = NULL;
+ unsigned long last_symnum = ULONG_MAX;
for (rela = obj->rela; rela < obj->relalim; rela++) {
Elf_Addr *where;
- const Elf_Sym *def;
- const Obj_Entry *defobj;
Elf_Addr tmp;
unsigned long symnum;
Home |
Main Index |
Thread Index |
Old Index