Skip to content

Commit 8142cb2

Browse files
committed
XXX elf defn's for newly added features needs cleanup
1 parent 4e41b06 commit 8142cb2

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

common/elfdefinitions.h

+22-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,23 @@ _ELF_DEFINE_DF(DF_TEXTREL, 0x4, \
7272
_ELF_DEFINE_DF(DF_BIND_NOW, 0x8, \
7373
"process relocation entries at load time") \
7474
_ELF_DEFINE_DF(DF_STATIC_TLS, 0x10, \
75-
"uses static thread-local storage")
75+
"uses static thread-local storage") \
76+
_ELF_DEFINE_DF(DF_1_BIND_NOW, 0x1, \
77+
"process relocation entries at load time") \
78+
_ELF_DEFINE_DF(DF_1_GLOBAL, 0x2, \
79+
"") \
80+
_ELF_DEFINE_DF(DF_1_NODELETE, 0x8, \
81+
"") \
82+
_ELF_DEFINE_DF(DF_1_LOADFLTR, 0x10, \
83+
"") \
84+
_ELF_DEFINE_DF(DF_1_NOOPEN, 0x40, \
85+
"") \
86+
_ELF_DEFINE_DF(DF_1_ORIGIN, 0x80, \
87+
"") \
88+
_ELF_DEFINE_DF(DF_1_INTERPOSE, 0x400, \
89+
"") \
90+
_ELF_DEFINE_DF(DF_1_NODEFLIB, 0x800, \
91+
"")
7692
#undef _ELF_DEFINE_DF
7793
#define _ELF_DEFINE_DF(N, V, DESCR) N = V ,
7894
enum {
@@ -2434,6 +2450,9 @@ enum {
24342450

24352451
#define _ELF_DEFINE_NOTE_ENTRY_TYPES() \
24362452
_ELF_DEFINE_NT(NT_ABI_TAG, 1, "Tag indicating the ABI") \
2453+
_ELF_DEFINE_NT(NT_FREEBSD_NOINIT_TAG, 2, "") \
2454+
_ELF_DEFINE_NT(NT_FREEBSD_ARCH_TAG, 3, "") \
2455+
_ELF_DEFINE_NT(NT_FREEBSD_FEATURE_CTL, 4, "") \
24372456
_ELF_DEFINE_NT(NT_GNU_HWCAP, 2, "Hardware capabilities") \
24382457
_ELF_DEFINE_NT(NT_GNU_BUILD_ID, 3, "Build id, set by ld(1)") \
24392458
_ELF_DEFINE_NT(NT_GNU_GOLD_VERSION, 4, \
@@ -2457,6 +2476,8 @@ enum {
24572476
NT__LAST__
24582477
};
24592478

2479+
#define NT_FREEBSD_FCTL_ASLR_DISABLE 1
2480+
24602481
/* Aliases for the ABI tag. */
24612482
#define NT_FREEBSD_ABI_TAG NT_ABI_TAG
24622483
#define NT_GNU_ABI_TAG NT_ABI_TAG

0 commit comments

Comments
 (0)