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