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

Message ID 7ad80cfea6c3b3d6dd94a086bebe95c41d781596.1594396647.git.vivek@collabora.com
State New
Headers show
Series
  • binutils patches for DT_GNU_FLAGS_1/DF_GNU_1_UNIQUE
Related show

Commit Message

Jose E. Marchesi via Binutils July 10, 2020, 4:01 p.m.
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(+)

-- 
2.11.0

Patch

diff --git a/include/ChangeLog b/include/ChangeLog
index 49b9f038fa..c0303f0e6d 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@ 
+2020-07-10  Vivek Das Mohapatra  <vivek@collabora.com>
+
+	* elf/common.h (DT_GNU_FLAGS_1, DF_GNU_1_UNIQUE): Define.
+
 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
 
 	* elf/common.h (AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC)
diff --git a/include/elf/common.h b/include/elf/common.h
index 88dd1c9983..1c62985b3b 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -1003,6 +1003,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
@@ -1066,6 +1067,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