aboutsummaryrefslogtreecommitdiffstats
path: root/test/Scripts
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-08-04 14:48:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-08-04 14:48:27 +0000
commita83f8ef9b4d727011ee43743810ef1f6ec12bb81 (patch)
tree6cc3e4bbf9004bf5aeece502f24eb25165765131 /test/Scripts
parentf81f6758f3188e1fd8be6b3707301959268dbbf0 (diff)
downloadexternal_llvm-a83f8ef9b4d727011ee43743810ef1f6ec12bb81.zip
external_llvm-a83f8ef9b4d727011ee43743810ef1f6ec12bb81.tar.gz
external_llvm-a83f8ef9b4d727011ee43743810ef1f6ec12bb81.tar.bz2
Print r_sym with the correct number of bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/elf-dump2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Scripts/elf-dump b/test/Scripts/elf-dump
index 36e06fb..33581f4 100755
--- a/test/Scripts/elf-dump
+++ b/test/Scripts/elf-dump
@@ -127,7 +127,7 @@ def dumpRel(f, section, dumprela = False):
else:
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_sym', %s)" % common_dump.HexDump(r_sym[0], r_sym[1])
print " ('r_type', %s)" % common_dump.HexDump(r_type[0], r_type[1])
if dumprela:
val = f.readWord()