aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2015-05-22 20:50:35 +0000
committerWarner Losh <imp@FreeBSD.org>2015-05-22 20:50:35 +0000
commitd36eec691ab5c3f0eebdbf85b24388fe165f4a09 (patch)
tree83b35d75e3358fb581b2d01f8303b7f705007fea /sys/sys
parent7fb888588c61a18b3601ffc0ac4d0fb30c9ce7de (diff)
downloadsrc-d36eec691ab5c3f0eebdbf85b24388fe165f4a09.tar.gz
src-d36eec691ab5c3f0eebdbf85b24388fe165f4a09.zip
Export the eflags field from the elf header. This allows better
discrimination between different subarch binaries, at least for mips and arm. Arm is implemented, mips is still tbd, so not currently exported. aarch64 does not export this because aarch64 binaries use different tags and flags than arm. Differential Revision: https://reviews.freebsd.org/D2611
Notes
Notes: svn path=/head/; revision=283297
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/imgact_elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/imgact_elf.h b/sys/sys/imgact_elf.h
index e8d5567cc273..d1d4f219c297 100644
--- a/sys/sys/imgact_elf.h
+++ b/sys/sys/imgact_elf.h
@@ -52,6 +52,7 @@ typedef struct {
Elf_Size base;
Elf_Size flags;
Elf_Size entry;
+ Elf_Word hdr_eflags; /* e_flags field from ehdr */
} __ElfN(Auxargs);
typedef struct {