Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pc532/stand/common Fix symbol loading. esym is pass...



details:   https://anonhg.NetBSD.org/src/rev/7955d0b4fc56
branches:  trunk
changeset: 472589:7955d0b4fc56
user:      matthias <matthias%NetBSD.org@localhost>
date:      Mon May 03 09:19:29 1999 +0000

description:
Fix symbol loading. esym is passed as an offset to loadaddress.

diffstat:

 sys/arch/pc532/stand/common/machdep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 67f94649856c -r 7955d0b4fc56 sys/arch/pc532/stand/common/machdep.c
--- a/sys/arch/pc532/stand/common/machdep.c     Mon May 03 09:08:28 1999 +0000
+++ b/sys/arch/pc532/stand/common/machdep.c     Mon May 03 09:19:29 1999 +0000
@@ -1,6 +1,6 @@
-/*     $NetBSD: machdep.c,v 1.2 1998/09/12 19:15:00 matthias Exp $     */
+/*     $NetBSD: machdep.c,v 1.3 1999/05/03 09:19:29 matthias Exp $     */
 
-/* 
+/*
  * Copyright (c) 1994 Philip L. Budne.
  * All rights reserved.
  *
@@ -90,13 +90,15 @@
        extern u_int opendev;
 
        load = (char *)((long)entry & 0x00ffff00);
+       /* /sys/lib/libsa/exec.c subtracts loadaddr from esym??? */
+       esym += (u_long)loadaddr;
 
        if (load != loadaddr) {
                memcpy(load, loadaddr, esym - loadaddr);
                ssym += loadaddr - load;
                esym += loadaddr - load;
        }
-       entry = (char *)((long)entry & 0xffffff);
+       entry = (char *)((u_long)entry & 0xffffff);
 
        printf("\n");
 



Home | Main Index | Thread Index | Old Index