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