From b0d58672df8644288a5fdce6ae229eaaa0db2de7 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Wed, 25 May 2022 17:17:52 -0500 Subject: 14711 wsdiff should display SHT_REL symbolically Reviewed by: Jason King Reviewed by: Gordon Ross Approved by: Robert Mustacchi --- usr/src/tools/scripts/wsdiff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/tools/scripts/wsdiff.py') 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); - -- cgit v1.2.3