aboutsummaryrefslogtreecommitdiff
path: root/test/Scripts
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-08-04 14:39:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-08-04 14:39:30 +0000
commitf81f6758f3188e1fd8be6b3707301959268dbbf0 (patch)
tree64586f57d47b581187d9b0020eb70269e435e6df /test/Scripts
parent65ad8dc807174b53615181a8170befdf60b6771d (diff)
Print r_type with the correct number of bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/elf-dump10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/Scripts/elf-dump b/test/Scripts/elf-dump
index f116e3a0aa..36e06fbe42 100755
--- a/test/Scripts/elf-dump
+++ b/test/Scripts/elf-dump
@@ -122,11 +122,13 @@ def dumpRel(f, section, dumprela = False):
print " (('r_offset', %s)" % common_dump.HexDump(f.readWord())
r_info = f.readWord()
if f.is64Bit:
- print " ('r_sym', %s)" % common_dump.HexDump((r_info >> 32))
- print " ('r_type', %s)" % common_dump.HexDump((r_info & 0xffffffff))
+ r_sym = (r_info >> 32, 32)
+ r_type = (r_info & 0xffffffff, 32)
else:
- print " ('r_sym', %s)" % common_dump.HexDump((r_info >> 8))
- print " ('r_type', %s)" % common_dump.HexDump((r_info & 0xff))
+ r_sym = (r_info >> 8, 24)
+ r_type = (r_info & 0xff, 8)
+ print " ('r_sym', %s)" % common_dump.HexDump(r_sym[0], 32)
+ print " ('r_type', %s)" % common_dump.HexDump(r_type[0], r_type[1])
if dumprela:
val = f.readWord()
if f.is64Bit: