diff options
author | cognet <cognet@FreeBSD.org> | 2004-09-23 23:29:24 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-09-23 23:29:24 +0000 |
commit | 49654e152d8d6cacaf2e6cefc6c5e7b48ebe00f4 (patch) | |
tree | 98b7bb17359fcd267e3793467bee44588c1b058d /sys/kern/imgact_elf.c | |
parent | 1c608783756a83e9a18f4bfd7de3b3352129b300 (diff) | |
download | FreeBSD-src-49654e152d8d6cacaf2e6cefc6c5e7b48ebe00f4.zip FreeBSD-src-49654e152d8d6cacaf2e6cefc6c5e7b48ebe00f4.tar.gz |
On arm, set the default elf brand to FreeBSD, until the binutils do it for us.
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r-- | sys/kern/imgact_elf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 29d6ed8..9880ad6 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -82,7 +82,11 @@ static int __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp); SYSCTL_NODE(_kern, OID_AUTO, __CONCAT(elf, __ELF_WORD_SIZE), CTLFLAG_RW, 0, ""); +#ifdef __arm__ +int __elfN(fallback_brand) = 9; +#else int __elfN(fallback_brand) = -1; +#endif SYSCTL_INT(__CONCAT(_kern_elf, __ELF_WORD_SIZE), OID_AUTO, fallback_brand, CTLFLAG_RW, &__elfN(fallback_brand), 0, __XSTRING(__CONCAT(ELF, __ELF_WORD_SIZE)) " brand of last resort"); |