diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2022-02-03 14:38:15 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2022-02-11 22:32:23 +0000 |
commit | fd8d4e53bc2ac424d6f08ac700800093b03a2d97 (patch) | |
tree | 6cb4f67478729c65158febd9e8ab03ebde273a7f /sys/conf/vdso_amd64.ldscript | |
parent | b0c1600a8c42fc1b2c90714d5fefd3266385225a (diff) | |
download | src-fd8d4e53bc2ac424d6f08ac700800093b03a2d97.tar.gz src-fd8d4e53bc2ac424d6f08ac700800093b03a2d97.zip |
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
Diffstat (limited to 'sys/conf/vdso_amd64.ldscript')
-rw-r--r-- | sys/conf/vdso_amd64.ldscript | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/conf/vdso_amd64.ldscript b/sys/conf/vdso_amd64.ldscript index d412abd4cd02..40b147e3a715 100644 --- a/sys/conf/vdso_amd64.ldscript +++ b/sys/conf/vdso_amd64.ldscript @@ -32,6 +32,14 @@ * 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 { text PT_LOAD FILEHDR PHDRS FLAGS(5); /* PF_R|PF_X */ |