diff options
author | peter <peter@FreeBSD.org> | 2001-02-25 07:51:19 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-02-25 07:51:19 +0000 |
commit | eccd7b6a58cadd545a2ac78ede4226414e8d130b (patch) | |
tree | a3b52a23f3255948c70d53ddc304fcf50341cd22 /sys/conf/Makefile.pc98 | |
parent | bded4d8c3026311cdf377ff814859b39b1f34b3f (diff) | |
download | FreeBSD-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.pc98')
-rw-r--r-- | sys/conf/Makefile.pc98 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98 index 9332655..9bafc06 100644 --- a/sys/conf/Makefile.pc98 +++ b/sys/conf/Makefile.pc98 @@ -190,11 +190,11 @@ 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 rm -f ./machine ; ln -s $S/$M/include ./machine - ${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 |