aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2007-05-22 02:22:58 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2007-05-22 02:22:58 +0000
commit23a29e45cd135db320c6b1a9ab2b5a9a3b1bdc0c (patch)
tree7c826ca706a686b21e9f8621b494e18f0e6a891d /sys/amd64/amd64
parent42aff2e46d09f1ebb2c96cc011981b074e78390d (diff)
downloadsrc-23a29e45cd135db320c6b1a9ab2b5a9a3b1bdc0c.tar.gz
src-23a29e45cd135db320c6b1a9ab2b5a9a3b1bdc0c.zip
Allow FreeBSD's native ELF image activators to execute shared libraries the
same way it was enabled for Linux binares in linuxulator. This allows binaries built with -pie. Many ports auto-detect -fPIE support in GCC 4.2 and build binaries FreeBSD was unable to run.
Notes
Notes: svn path=/head/; revision=169846
Diffstat (limited to 'sys/amd64/amd64')
-rw-r--r--sys/amd64/amd64/elf_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/elf_machdep.c b/sys/amd64/amd64/elf_machdep.c
index cb5694dde13d..fdef5e3b315e 100644
--- a/sys/amd64/amd64/elf_machdep.c
+++ b/sys/amd64/amd64/elf_machdep.c
@@ -82,7 +82,7 @@ static Elf64_Brandinfo freebsd_brand_info = {
"/libexec/ld-elf.so.1",
&elf64_freebsd_sysvec,
NULL,
- 0,
+ BI_CAN_EXEC_DYN,
};
SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_ANY,
@@ -97,7 +97,7 @@ static Elf64_Brandinfo freebsd_brand_oinfo = {
"/usr/libexec/ld-elf.so.1",
&elf64_freebsd_sysvec,
NULL,
- 0,
+ BI_CAN_EXEC_DYN,
};
SYSINIT(oelf64, SI_SUB_EXEC, SI_ORDER_ANY,