Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/stand/prekern Apply amd64/kobj_machdep.c::rev...



details:   https://anonhg.NetBSD.org/src/rev/2c0ccc376f98
branches:  trunk
changeset: 447271:2c0ccc376f98
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Jan 05 22:11:07 2019 +0000

description:
Apply amd64/kobj_machdep.c::rev1.7 to the prekern too, to fix the
relocation with updated binutils.

diffstat:

 sys/arch/amd64/stand/prekern/elf.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r da31751cc8ae -r 2c0ccc376f98 sys/arch/amd64/stand/prekern/elf.c
--- a/sys/arch/amd64/stand/prekern/elf.c        Sat Jan 05 21:49:45 2019 +0000
+++ b/sys/arch/amd64/stand/prekern/elf.c        Sat Jan 05 22:11:07 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf.c,v 1.17 2017/11/21 07:56:05 maxv Exp $    */
+/*     $NetBSD: elf.c,v 1.18 2019/01/05 22:11:07 maxv Exp $    */
 
 /*
  * Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved.
@@ -196,6 +196,7 @@
                break;
 
        case R_X86_64_PC32:     /* S + A - P */
+       case R_X86_64_PLT32:
                addr = elf_sym_lookup(symidx);
                where32 = (Elf32_Addr *)where;
                val32 = (Elf32_Addr)(addr + addend - (Elf64_Addr)where);



Home | Main Index | Thread Index | Old Index