[RFC][PATCH v6 1/6] Define a new DT_GNU_FLAGS_1 dynamic section for ld, readelf et al

Vivek Das Mohapatra vivek@collabora.com
Mon Dec 14 17:25:50 GMT 2020


DT_GNU_FLAGS_1 added to the DT_VALRNGLO-DT_VALRNGHI range.
DT_GNU_FLAGS_1 value DF_GNU_1_UNIQUE added.
---
 include/ChangeLog    | 4 ++++
 include/elf/common.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/include/ChangeLog b/include/ChangeLog
index ebda223cb1..ca67c7fd9b 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2020-12-09  Vivek Das Mohapatra  <vivek@collabora.com>
+
+	* elf/common.h (DT_GNU_FLAGS_1, DF_GNU_1_UNIQUE): Define.
+
 2020-12-07  Nick Clifton  <nickc@redhat.com>
 
 	* elf/common.h (SHF_GNU_BUILD_NOTE): Delete.
diff --git a/include/elf/common.h b/include/elf/common.h
index 6482f8c0bd..ae9156db0a 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -1032,6 +1032,7 @@
    deliberate special case and we maintain it for backwards compatability.
  */
 #define DT_VALRNGLO	0x6ffffd00
+#define DT_GNU_FLAGS_1  0x6ffffdf4
 #define DT_GNU_PRELINKED 0x6ffffdf5
 #define DT_GNU_CONFLICTSZ 0x6ffffdf6
 #define DT_GNU_LIBLISTSZ 0x6ffffdf7
@@ -1095,6 +1096,9 @@
 #define DF_P1_LAZYLOAD	0x00000001
 #define DF_P1_GROUPPERM	0x00000002
 
+/* Flag value in the DT_GNU_FLAGS_1 /dynamic entry.  */
+#define DF_GNU_1_UNIQUE 0x00000001
+
 /* Flag value in in the DT_FLAGS_1 .dynamic entry.  */
 #define DF_1_NOW	0x00000001
 #define DF_1_GLOBAL	0x00000002
-- 
2.20.1



More information about the Binutils mailing list