diff options
author | dchagin <dchagin@FreeBSD.org> | 2014-05-31 15:01:51 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2014-05-31 15:01:51 +0000 |
commit | 538f3968874e543216ed46b34ccc32f6d8fa03ba (patch) | |
tree | 7b42210cf4c11090d243ed2aadfc1240433bcd85 /sys/i386 | |
parent | f38753151f23bc12408144948eee1eb573455b16 (diff) | |
download | FreeBSD-src-538f3968874e543216ed46b34ccc32f6d8fa03ba.zip FreeBSD-src-538f3968874e543216ed46b34ccc32f6d8fa03ba.tar.gz |
To allow to run the interpreter itself add a new ELF branding type.
Allow Linux ABI to run ELF interpreter.
MFC after: 3 days
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index 0ad6791..60df6a2 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -1058,7 +1058,7 @@ static Elf32_Brandinfo linux_brand = { .sysvec = &elf_linux_sysvec, .interp_newpath = NULL, .brand_note = &linux_brandnote, - .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE + .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE | BI_CAN_EXEC_INTERP }; static Elf32_Brandinfo linux_glibc2brand = { @@ -1070,7 +1070,7 @@ static Elf32_Brandinfo linux_glibc2brand = { .sysvec = &elf_linux_sysvec, .interp_newpath = NULL, .brand_note = &linux_brandnote, - .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE + .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE | BI_CAN_EXEC_INTERP }; Elf32_Brandinfo *linux_brandlist[] = { |