Invoke objcopy on the right object when building Scrt1.o on i386.

This was a copy-paste bug in r362902.  While here, switch to using
${.TARGET}.

Reported by:	Kjell Tore Ullavik <ktullavik@gmail.com>
Reviewed by:	kib
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D25585
This commit is contained in:
jhb 2020-07-07 18:19:05 +00:00
parent 6aec4ac28e
commit 7126b67e9e

View File

@ -37,7 +37,7 @@ CLEANFILES+= ${OBJS} ${CRT1OBJS} crt1_c.o gcrt1_c.o Scrt1_c.o
crt1.o: crt1_c.o ${CRT1OBJS}
${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o}
.if ${MACHINE_ARCH} == "i386"
${OBJCOPY} --localize-symbol _start1 crt1.o
${OBJCOPY} --localize-symbol _start1 ${.TARGET}
.endif
gcrt1_c.o: crt1_c.c
@ -52,7 +52,7 @@ Scrt1_c.o: crt1_c.c
Scrt1.o: Scrt1_c.o ${CRT1OBJS}
${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o}
.if ${MACHINE_ARCH} == "i386"
${OBJCOPY} --localize-symbol _start1 crt1.o
${OBJCOPY} --localize-symbol _start1 ${.TARGET}
.endif
crtbegin.o: crtbegin.c