Create a linker map file.

Very useful when trying to find out where recent 'bloat' has come from,
as well as giving exact details of what is actually in the kernel.
This commit is contained in:
dsl 2006-08-24 21:23:40 +00:00
parent 6a3b33002c
commit 5464d4dc61
2 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.kern.inc,v 1.82 2006/06/02 22:16:18 mrg Exp $
# $NetBSD: Makefile.kern.inc,v 1.83 2006/08/24 21:23:40 dsl Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@ -177,8 +177,8 @@ SYSTEM_DEP?= Makefile ${SYSTEM_OBJ:O} .gdbinit
SYSTEM_LD_HEAD?=@rm -f $@
SYSTEM_LD?= @${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}"; \
${_MKSHECHO}\
${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o; \
${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o; \
${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
SYSTEM_LD_TAIL?=@${SIZE} $@; chmod 755 $@
TEXTADDR?= ${LOADADDRESS} # backwards compatibility

View File

@ -1,4 +1,4 @@
# $NetBSD: files,v 1.793 2006/08/05 17:20:54 pavel Exp $
# $NetBSD: files,v 1.794 2006/08/24 21:23:40 dsl Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@ -76,6 +76,13 @@ defflag opt_veriexec.h VERIFIED_EXEC_FP_SHA1
VERIFIED_EXEC_FP_MD5
VERIFIED_EXEC_FP_RMD160
# Per system call number counts and times
defflag opt_syscall_stats.h SYSCALL_STATS
defflag opt_syscall_stats.h SYSCALL_TIMES: SYSCALL_STATS
# Assume cpu_hascounter() returns true - to use disabled rdtsc() (for soekris)
defflag opt_syscall_stats.h SYSCALL_TIMES_HASCOUNTER: SYSCALL_TIMES
file kern/subr_syscall_stats.c syscall_stats
defparam opt_pax.h PAX_MPROTECT
defflag opt_fileassoc.h FILEASSOC