diff --git a/sys/conf/vdso_amd64.ldscript b/sys/conf/vdso_amd64.ldscript --- a/sys/conf/vdso_amd64.ldscript +++ b/sys/conf/vdso_amd64.ldscript @@ -32,6 +32,9 @@ * Linker script for amd64 vdso. */ +OUTPUT_ARCH(i386:x86-64) +TARGET(elf64-x86-64-freebsd) + PHDRS { text PT_LOAD FILEHDR PHDRS FLAGS(5); /* PF_R|PF_X */ diff --git a/sys/conf/vdso_amd64_ia32.ldscript b/sys/conf/vdso_amd64_ia32.ldscript --- a/sys/conf/vdso_amd64_ia32.ldscript +++ b/sys/conf/vdso_amd64_ia32.ldscript @@ -33,6 +33,7 @@ */ OUTPUT_ARCH(i386) +TARGET(elf32-i386-freebsd) PHDRS {