Subject: kern/19877: kernel_text symbol missing from some ports
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 01/16/2003 11:02:10
>Number: 19877
>Category: kern
>Synopsis: kernel_text symbol missing from some ports
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 16 08:03:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: TheMan
>Release: 1.6K (not that that's relevant here)
>Organization:
none
>Environment:
System: NetBSD this 1.6K NetBSD 1.6K (THAT) #147: Fri Jan 10 18:49:06 EST 2003 andrew@this:/usr/src/sys/arch/i386/compile/THAT i386
>Description:
i was trying out pmap on a sh5 (thanks steve) to check
something, and it said "pmap: symbol _kernel_text: not found". i
looked in the kernel and i couldn't find it either. then i looked in
the source at it wasn't there as well. mkid tells me that the
following files define it:
% mkid
% gid kernel_text | grep _C_LABEL | sed 's/:.*//' | sort -u
arch/acorn26/acorn26/locore.S
arch/amigappc/amigappc/locore.S
arch/bebox/bebox/locore.S
arch/evbppc/walnut/walnut_start.S
arch/i386/i386/locore.S
arch/macppc/macppc/locore.S
arch/mips/mips/locore.S
arch/mvmeppc/mvmeppc/locore.S
arch/ofppc/ofppc/locore.S
arch/pmppc/pmppc/locore.S
arch/prep/prep/locore.S
arch/sandpoint/sandpoint/locore.S
arch/sparc/sparc/locore.s
arch/sparc/stand/ofwboot/srt0.s
arch/sparc64/sparc64/locore.s
arch/vax/vax/intvec.S
arch/x86_64/x86_64/locore.S
for contrast:
% gid intrcnt | grep _C_LABEL | sed 's/:.*//' | sort -u
arch/acorn26/acorn26/locore.S
arch/algor/algor/locore_machdep.S
arch/amiga/amiga/locore.s
arch/arc/arc/locore_machdep.S
arch/arm/footbridge/footbridge_irq.S
arch/arm/iomd/iomd_irq.S
arch/arm/ixp12x0/ixp12x0_irq.S
arch/arm/ofw/ofw_irq.S
arch/arm/s3c2xx0/s3c2xx0_irq.S
arch/arm/sa11x0/sa11x0_irq.S
arch/arm/xscale/i80200_irq.S
arch/arm/xscale/i80321_irq.S
arch/arm/xscale/pxa2x0_irq.S
arch/atari/atari/locore.s
arch/cesfic/cesfic/locore.s
arch/cobalt/cobalt/locore_machdep.S
arch/dreamcast/dreamcast/locore.S
arch/evbarm/ifpga/ifpga_irq.S
arch/evbmips/evbmips/locore_machdep.S
arch/evbsh3/evbsh3/locore.S
arch/hpcmips/hpcmips/locore_machdep.S
arch/hpcsh/hpcsh/locore.S
arch/i386/i386/vector.S
arch/luna68k/luna68k/locore.s
arch/mac68k/mac68k/locore.s
arch/mipsco/mipsco/locore_machdep.S
arch/mmeye/mmeye/locore.S
arch/news68k/news68k/locore.s
arch/newsmips/newsmips/locore_machdep.S
arch/next68k/next68k/locore.s
arch/pc532/pc532/locore.s
arch/playstation2/playstation2/locore_machdep.S
arch/sbmips/sbmips/locore_machdep.S
arch/sgimips/sgimips/locore_machdep.S
arch/shark/isa/isa_irq.S
arch/sparc/sparc/locore.s
arch/sparc64/sparc64/locore.s
arch/vax/vax/intvec.S
arch/x68k/x68k/locore.s
arch/x86_64/x86_64/vector.S
>How-To-Repeat:
run pmap. see if it whines about this.
>Fix:
probably trivial, however, i'm going to refrain from making
what seems to me to be a simple change in places where i haven't yet
started to consider thinking about the possibility of playing around.
so to speak.
>Release-Note:
>Audit-Trail:
>Unformatted: