summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/wsdiff.py
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2022-05-25 17:17:52 -0500
committerRichard Lowe <richlowe@richlowe.net>2022-05-27 15:16:36 -0500
commitb0d58672df8644288a5fdce6ae229eaaa0db2de7 (patch)
tree5400a31e4945136ed4ab1dce1428ce948fcb4d6a /usr/src/tools/scripts/wsdiff.py
parent43075873f664db76209f1fdf87cb3961a113bfaf (diff)
downloadillumos-joyent-b0d58672df8644288a5fdce6ae229eaaa0db2de7.tar.gz
14711 wsdiff should display SHT_REL symbolically
Reviewed by: Jason King <jason.brian.king@gmail.com> Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/tools/scripts/wsdiff.py')
-rw-r--r--usr/src/tools/scripts/wsdiff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/tools/scripts/wsdiff.py b/usr/src/tools/scripts/wsdiff.py
index ee76209bba..f5364101ea 100644
--- a/usr/src/tools/scripts/wsdiff.py
+++ b/usr/src/tools/scripts/wsdiff.py
@@ -826,7 +826,8 @@ def diff_elf_section(f1, f2, section, sh_type) :
tmpFile1 = tmpDir1 + os.path.basename(f1) + t.name
tmpFile2 = tmpDir2 + os.path.basename(f2) + t.name
- if (sh_type == "SHT_RELA") : # sh_type == SHT_RELA
+ if ((sh_type == "SHT_RELA") or
+ (sh_type == "SHT_REL")): # relocation section
cmd1 = elfdump_cmd + " -r " + f1 + " > " + tmpFile1
cmd2 = elfdump_cmd + " -r " + f2 + " > " + tmpFile2
elif (section == ".group") :
@@ -1606,4 +1607,3 @@ if __name__ == '__main__' :
main()
except KeyboardInterrupt :
cleanup(1);
-