diff mbox series

[RFC,4/6] Handle DF_1_UNIQUE in readelf

Message ID aa0a848cde5fa0fcb5864411d58e67eda11e59e1.1585587351.git.vivek@collabora.com
State New
Headers show
Series binutils patches to add DT_FLAGS_1 / DF_1_UNIQUE | expand

Commit Message

Vivek Das Mohapatra March 30, 2020, 5:42 p.m. UTC
---
 binutils/readelf.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/binutils/readelf.c b/binutils/readelf.c
index eb41e10dae..ed1d757623 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -10349,6 +10349,11 @@  process_dynamic_section (Filedata * filedata)
 		      printf (" NOCOMMON");
 		      val ^= DF_1_NOCOMMON;
 		    }
+                  if (val & DF_1_UNIQUE)
+                    {
+                      printf (" UNIQUE");
+                      val ^= DF_1_UNIQUE;
+                    }
 		  if (val != 0)
 		    printf (" %lx", val);
 		  puts ("");