summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.i386
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-02-25 07:51:19 +0000
committerpeter <peter@FreeBSD.org>2001-02-25 07:51:19 +0000
commiteccd7b6a58cadd545a2ac78ede4226414e8d130b (patch)
treea3b52a23f3255948c70d53ddc304fcf50341cd22 /sys/conf/Makefile.i386
parentbded4d8c3026311cdf377ff814859b39b1f34b3f (diff)
downloadFreeBSD-src-eccd7b6a58cadd545a2ac78ede4226414e8d130b.zip
FreeBSD-src-eccd7b6a58cadd545a2ac78ede4226414e8d130b.tar.gz
genassym.sh does not work with a.out because the sizes are rounded up
by the compiler. ie: char foo[0] comes out as 4 bytes on a.out, and we depended on it coming out as 0 for the script version. :-( Make double sure that genassym.o is built and nm'ed in elf mode. (ia64 skipped since it is stuck on the linux toolchain and doesn't understand the -elf switches)
Diffstat (limited to 'sys/conf/Makefile.i386')
-rw-r--r--sys/conf/Makefile.i3864
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index f92c654..d42199c 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -188,10 +188,10 @@ setdef0.c setdef1.c setdefs.h: Makefile ${OBJS}
./assym.s: assym.s
assym.s: $S/kern/genassym.sh genassym.o
- sh $S/kern/genassym.sh genassym.o > ${.TARGET}
+ OBJFORMAT=elf sh $S/kern/genassym.sh genassym.o > ${.TARGET}
genassym.o: $S/$M/$M/genassym.c
- ${CC} -c ${CFLAGS} $S/$M/$M/genassym.c
+ ${CC} -c ${CFLAGS} -elf $S/$M/$M/genassym.c
${SYSTEM_OBJS} genassym.o vers.o: opt_global.h
OpenPOWER on IntegriCloud