vdso linker scripts: explicitly specify output arch and target
Requested by: jhb Reviewed by: emaste, imp, jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34157
This commit is contained in:
parent
b0c1600a8c
commit
fd8d4e53bc
@ -32,6 +32,14 @@
|
|||||||
* Linker script for amd64 vdso.
|
* Linker script for amd64 vdso.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The OUTPUT_ARCH and TARGET lines are for ld.bfd.
|
||||||
|
* lld doesn't do much with them, the only thing it does is producing ELF
|
||||||
|
* or binary based on TARGET.
|
||||||
|
*/
|
||||||
|
OUTPUT_ARCH(i386:x86-64)
|
||||||
|
TARGET(elf64-x86-64-freebsd)
|
||||||
|
|
||||||
PHDRS
|
PHDRS
|
||||||
{
|
{
|
||||||
text PT_LOAD FILEHDR PHDRS FLAGS(5); /* PF_R|PF_X */
|
text PT_LOAD FILEHDR PHDRS FLAGS(5); /* PF_R|PF_X */
|
||||||
|
@ -32,7 +32,14 @@
|
|||||||
* Linker script for ia32 (32bit) vdso on amd64.
|
* Linker script for ia32 (32bit) vdso on amd64.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The OUTPUT_ARCH and TARGET lines are for ld.bfd, which cannot determine
|
||||||
|
* the output format based on the first input file.
|
||||||
|
* lld doesn't do much with them, the only thing it does is produce ELF
|
||||||
|
* or binary based on TARGET.
|
||||||
|
*/
|
||||||
OUTPUT_ARCH(i386)
|
OUTPUT_ARCH(i386)
|
||||||
|
TARGET(elf32-i386-freebsd)
|
||||||
|
|
||||||
PHDRS
|
PHDRS
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user