mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
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:
parent
dae42c1ad6
commit
29604605a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73018
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user