1d4c55
Partial backport of the scripts/glibcelf.py part of:
1d4c55
1d4c55
commit 4610b24f5e4e6d2c4b769594efa6d460943163bb
1d4c55
Author: H.J. Lu <hjl.tools@gmail.com>
1d4c55
Date:   Tue Mar 29 14:08:54 2022 -0700
1d4c55
1d4c55
    elf: Define DT_RELR related macros and types
1d4c55
1d4c55
diff --git a/scripts/glibcelf.py b/scripts/glibcelf.py
1d4c55
index da0d5380f33a195e..f847b36c55c15b8a 100644
1d4c55
--- a/scripts/glibcelf.py
1d4c55
+++ b/scripts/glibcelf.py
1d4c55
@@ -304,6 +304,7 @@ class Sht(_OpenIntEnum):
1d4c55
     SHT_PREINIT_ARRAY = 16
1d4c55
     SHT_GROUP = 17
1d4c55
     SHT_SYMTAB_SHNDX = 18
1d4c55
+    SHT_RELR = 19
1d4c55
     SHT_GNU_ATTRIBUTES = 0x6ffffff5
1d4c55
     SHT_GNU_HASH = 0x6ffffff6
1d4c55
     SHT_GNU_LIBLIST = 0x6ffffff7
1d4c55
@@ -593,6 +594,9 @@ class Dt(_OpenIntEnum):
1d4c55
     DT_PREINIT_ARRAY = 32
1d4c55
     DT_PREINIT_ARRAYSZ = 33
1d4c55
     DT_SYMTAB_SHNDX = 34
1d4c55
+    DT_RELRSZ = 35
1d4c55
+    DT_RELR = 36
1d4c55
+    DT_RELRENT = 37
1d4c55
     DT_GNU_PRELINKED = 0x6ffffdf5
1d4c55
     DT_GNU_CONFLICTSZ = 0x6ffffdf6
1d4c55
     DT_GNU_LIBLISTSZ = 0x6ffffdf7