Source-Changes-HG archive

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

[src/trunk]: src/sys/conf Alter the way that LINKTEXT and LINKDATA (and LINKE...



details:   https://anonhg.NetBSD.org/src/rev/714ba26f7b3e
branches:  trunk
changeset: 518292:714ba26f7b3e
user:      atatat <atatat%NetBSD.org@localhost>
date:      Tue Nov 27 23:28:42 2001 +0000

description:
Alter the way that LINKTEXT and LINKDATA (and LINKENTRY) are set so
that empty values for TEXTADDR and DATAADDR (and ENTRYPOINT) will not
screw things up.  Add support for SYSTEM_LD_TAIL_EXTRA which some
ports (not yet converted) are using.  Add support for GENASSYM_EXTRAS
which has just been added to (some of) the arm ports.

diffstat:

 sys/conf/Makefile.kern.inc |  21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diffs (54 lines):

diff -r d1c148130a7b -r 714ba26f7b3e sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Tue Nov 27 21:40:55 2001 +0000
+++ b/sys/conf/Makefile.kern.inc        Tue Nov 27 23:28:42 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.kern.inc,v 1.4 2001/11/23 05:18:59 atatat Exp $
+#      $NetBSD: Makefile.kern.inc,v 1.5 2001/11/27 23:28:42 atatat Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. There are
@@ -132,10 +132,10 @@
 SYSTEM_LD_TAIL?=       @${SIZE} $@; chmod 755 $@
 
 TEXTADDR?=     ${LOADADDRESS}                  # backwards compatibility
-LINKTEXT?=     -Ttext ${TEXTADDR}
-LINKDATA?=     ${DATAADDR:D-Tdata ${DATAADDR}}
+LINKTEXT?=     ${TEXTADDR:C/.+/-Ttext &/}
+LINKDATA?=     ${DATAADDR:C/.+/-Tdata &/}
 ENTRYPOINT?=   start
-LINKENTRY?=    -e ${ENTRYPOINT}
+LINKENTRY?=    ${ENTRYPOINT:C:/.+/-e &/}
 LINKFLAGS?=    ${LINKFORMAT} ${LINKTEXT} ${LINKDATA} ${LINKENTRY} \
                ${EXTRA_LINKFLAGS}
 
@@ -155,13 +155,16 @@
 LINKFLAGS+=    ${LINKFLAGS_NORMAL}
 .endif
 
+SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_EXTRA}
+
 ##
 ## (6) port independent targets and dependencies: assym.h, newvers
 ##
 .if !target(assym.h)
-assym.h: $S/kern/genassym.sh ${GENASSYM}
-       sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
-           < ${GENASSYM} > assym.h.tmp && \
+assym.h: $S/kern/genassym.sh ${GENASSYM} ${GENASSYM_EXTRAS}
+       cat ${GENASSYM} ${GENASSYM_EXTRAS} | \
+           sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
+           > assym.h.tmp && \
        mv -f assym.h.tmp assym.h
 .endif
 
@@ -213,8 +216,8 @@
        ${MKDEP} ${MKDEP_AFLAGS} ${CPPFLAGS} ${MD_SFILES} ${SFILES}
        ${MKDEP} -a ${MKDEP_CFLAGS} ${CPPFLAGS} ${MD_CFILES} ${MI_CFILES} \
            ${CFILES}
-       sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
-           ${CPPFLAGS} < ${GENASSYM}
+       cat ${GENASSYM} ${GENASSYM_EXTRAS} | \
+           sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} ${CPPFLAGS}
        @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
        @rm -f assym.dep
 .endif



Home | Main Index | Thread Index | Old Index