[RFC,v4,5/6] Define DT_GNU_FLAGS_1 and DF_GNU_1_UNIQUE for gold

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

Commit Message

David Faust via Binutils July 9, 2020, 3:29 p.m.
---
 elfcpp/elfcpp.h | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.11.0

Comments

David Faust via Binutils July 9, 2020, 5:12 p.m. | #1
>  elfcpp/elfcpp.h | 7 +++++++

>  1 file changed, 7 insertions(+)

>

> diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h

> index 9c7c6294e4..19a10e1dba 100644

> --- a/elfcpp/elfcpp.h

> +++ b/elfcpp/elfcpp.h

> @@ -728,6 +728,7 @@ enum DT

>

>    // The remaining values are extensions used by GNU or Solaris.

>    DT_VALRNGLO = 0x6ffffd00,

> +  DT_GNU_FLAGS_1 = 0x6ffffdf4,

>    DT_GNU_PRELINKED = 0x6ffffdf5,

>    DT_GNU_CONFLICTSZ = 0x6ffffdf6,

>    DT_GNU_LIBLISTSZ = 0x6ffffdf7,

> @@ -917,6 +918,12 @@ enum DF_1

>    DF_1_PIE = 0x08000000

>  };

>

> +// Flags found in the DT_GNU_FLAGS_1 dynamic element.

> +enum DF_GNU_1

> +{

> +  DF_GNU_1_UNIQUE = 0x1,

> +};

> +

>  // Version numbers which appear in the vd_version field of a Verdef

>  // structure.


This is OK with an appropriate ChangeLog entry.

Thanks!

-cary

Patch

diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h
index 9c7c6294e4..19a10e1dba 100644
--- a/elfcpp/elfcpp.h
+++ b/elfcpp/elfcpp.h
@@ -728,6 +728,7 @@  enum DT
 
   // The remaining values are extensions used by GNU or Solaris.
   DT_VALRNGLO = 0x6ffffd00,
+  DT_GNU_FLAGS_1 = 0x6ffffdf4,
   DT_GNU_PRELINKED = 0x6ffffdf5,
   DT_GNU_CONFLICTSZ = 0x6ffffdf6,
   DT_GNU_LIBLISTSZ = 0x6ffffdf7,
@@ -917,6 +918,12 @@  enum DF_1
   DF_1_PIE = 0x08000000
 };
 
+// Flags found in the DT_GNU_FLAGS_1 dynamic element.
+enum DF_GNU_1
+{
+  DF_GNU_1_UNIQUE = 0x1,
+};
+
 // Version numbers which appear in the vd_version field of a Verdef
 // structure.