mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-10 09:42:26 +00:00
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:
parent
2fe5e736c9
commit
bd25b3408e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362995
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user