diff options
author | kan <kan@FreeBSD.org> | 2007-05-22 02:22:58 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2007-05-22 02:22:58 +0000 |
commit | 4c2d706212d046ce5bb96bb5bffd548695e089ca (patch) | |
tree | 7c826ca706a686b21e9f8621b494e18f0e6a891d /sys/i386 | |
parent | 2049c78badfb1241688c17c0af14489e1757edb8 (diff) | |
download | FreeBSD-src-4c2d706212d046ce5bb96bb5bffd548695e089ca.zip FreeBSD-src-4c2d706212d046ce5bb96bb5bffd548695e089ca.tar.gz |
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.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/elf_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/elf_machdep.c b/sys/i386/i386/elf_machdep.c index 2b3ffb4..dcc178e 100644 --- a/sys/i386/i386/elf_machdep.c +++ b/sys/i386/i386/elf_machdep.c @@ -82,7 +82,7 @@ static Elf32_Brandinfo freebsd_brand_info = { "/libexec/ld-elf.so.1", &elf32_freebsd_sysvec, NULL, - 0, + BI_CAN_EXEC_DYN, }; SYSINIT(elf32, SI_SUB_EXEC, SI_ORDER_ANY, @@ -97,7 +97,7 @@ static Elf32_Brandinfo freebsd_brand_oinfo = { "/usr/libexec/ld-elf.so.1", &elf32_freebsd_sysvec, NULL, - 0, + BI_CAN_EXEC_DYN, }; SYSINIT(oelf32, SI_SUB_EXEC, SI_ORDER_ANY, |