pass -fPIC to the assembler, not linker
-fPIC has no effect on linking although it seems to be ignored by GNU ld.bfd. However, it causes ld.lld to terminate with an invalid argument error. Reviewed by: dchagin, kib MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5444
This commit is contained in:
parent
7880fc113f
commit
621a9c54dd
@ -51,9 +51,9 @@ linux${SFX}_assym.h: linux${SFX}_genassym.o
|
||||
linux${SFX}_locore.o: linux${SFX}_assym.h assym.s
|
||||
${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s \
|
||||
-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc -nostdlib \
|
||||
-fno-omit-frame-pointer \
|
||||
-fno-omit-frame-pointer -fPIC \
|
||||
-Wl,-T${.CURDIR}/../../${MACHINE_CPUARCH}/linux${SFX}/${VDSO}.lds.s \
|
||||
-Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-fPIC,-warn-common \
|
||||
-Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-warn-common \
|
||||
${.IMPSRC} -o ${.TARGET}
|
||||
|
||||
linux${SFX}_support.o: linux${SFX}_assym.h assym.s
|
||||
|
@ -27,9 +27,9 @@ linux_assym.h: linux_genassym.o
|
||||
|
||||
linux_locore.o: linux_locore.s linux_assym.h
|
||||
${CC} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small \
|
||||
-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc \
|
||||
-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -fPIC -nostdinc \
|
||||
-Wl,-T${.CURDIR}/../../${MACHINE_CPUARCH}/linux/${VDSO}.lds.s \
|
||||
-Wl,-soname=${VDSO}.so.1,-fPIC,-warn-common -nostdlib \
|
||||
-Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib \
|
||||
${.IMPSRC} -o ${.TARGET}
|
||||
|
||||
${VDSO}.so: linux_locore.o
|
||||
|
Loading…
x
Reference in New Issue
Block a user