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)
This commit is contained in:
peter 2001-02-25 07:51:19 +00:00
parent bded4d8c30
commit eccd7b6a58
4 changed files with 8 additions and 8 deletions

View File

@ -183,10 +183,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+= __divqu.o __divq.o __divlu.o __divl.o
SYSTEM_OBJS+= __remqu.o __remq.o __remlu.o __reml.o

View File

@ -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

View File

@ -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

View File

@ -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