summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--elf/elf.h11
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 58849d75cb..8641b8db01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* elf/elf.h: Define more EM_* constants, ELFCLASSNUM, ELFDATANUM,
EV_NUM, Elf32_Nhdr, Elf64_Nhdr and various note section values.
+ * elf/elf.h: Add DT_FLAGS_1 and the DF_1_* flag definitions.
+
1998-07-29 Mark Kettenis <kettenis@phys.uva.nl>
* sysdeps/mach/hurd/dl-sysdep.c (__lseek): New function.
diff --git a/elf/elf.h b/elf/elf.h
index 9df6a52a9c..3780054aca 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -490,6 +490,7 @@ typedef struct
#define DT_VERSYM 0x6ffffff0
/* These were chosen by Sun. */
+#define DT_FLAGS_1 0x6ffffffb /* State flags, see DF_1_* below. */
#define DT_VERDEF 0x6ffffffc /* Address of version definition
table */
#define DT_VERDEFNUM 0x6ffffffd /* Number of version definitions */
@@ -506,6 +507,16 @@ typedef struct
#define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1)
#define DT_EXTRANUM 3
+/* State flags selectable in the `d_un.d_val' element of the DT_FLAGS_1
+ entry in the dynamic section. */
+#define DF_1_NOW 0x00000001 /* Set RTLD_NOW for this object. */
+#define DF_1_GLOBAL 0x00000002 /* Set RTLD_GLOBAL for this object. */
+#define DF_1_GROUP 0x00000004 /* Set RTLD_GROUP for this object. */
+#define DF_1_NODELETE 0x00000008 /* Set RTLD_NODELETE for this object.*/
+#define DF_1_LOADFLTR 0x00000010 /* Trigger filtee loading at runtime.*/
+#define DF_1_INITFIRST 0x00000020 /* Set RTLD_INITFIRST for this object*/
+#define DF_1_NOOPEN 0x00000040 /* Set RTLD_NOOPEN for this object. */
+
/* Version definition sections. */
typedef struct