Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/m68k/m68k Fix build after previous. m68k uses symnu...



details:   https://anonhg.NetBSD.org/src/rev/9065f1b88d77
branches:  trunk
changeset: 374509:9065f1b88d77
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Apr 29 10:01:51 2023 +0000

description:
Fix build after previous. m68k uses symnum instead of symidx.

diffstat:

 sys/arch/m68k/m68k/kobj_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 59cbdf4c50c0 -r 9065f1b88d77 sys/arch/m68k/m68k/kobj_machdep.c
--- a/sys/arch/m68k/m68k/kobj_machdep.c Sat Apr 29 08:15:13 2023 +0000
+++ b/sys/arch/m68k/m68k/kobj_machdep.c Sat Apr 29 10:01:51 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kobj_machdep.c,v 1.5 2023/04/28 07:33:56 skrll Exp $   */
+/*     $NetBSD: kobj_machdep.c,v 1.6 2023/04/29 10:01:51 skrll Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.5 2023/04/28 07:33:56 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_machdep.c,v 1.6 2023/04/29 10:01:51 skrll Exp $");
 
 #define        ELFSIZE         ARCH_ELFSIZE
 
@@ -57,7 +57,7 @@ kobj_reloc(kobj_t ko, uintptr_t relocbas
        symnum = ELF_R_SYM(rela->r_info);
        rtype = ELF_R_TYPE(rela->r_info);
 
-       const Elf_Sym *sym = kobj_symbol(ko, symidx);
+       const Elf_Sym *sym = kobj_symbol(ko, symnum);
 
        if (!local && ELF_ST_BIND(sym->st_info) == STB_LOCAL) {
                return 0;



Home | Main Index | Thread Index | Old Index