summaryrefslogtreecommitdiff
path: root/test/Scripts
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-08-04 15:38:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-08-04 15:38:19 +0000
commit67ac0c0d630aa823f31632beecef520df1d7c48b (patch)
tree34532ba9a17a456c1f0dc325c8598b35bb8aa978 /test/Scripts
parent71a8f5ca12e8536e6050cc7a09fa2a87ea629cfa (diff)
print st_other with the correct number of bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136877 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 d335e69b43..09a167c568 100755
--- a/test/Scripts/elf-dump
+++ b/test/Scripts/elf-dump
@@ -108,7 +108,7 @@ def dumpSymtab(f, section, strtab):
st_type = (st_info & 0xf, 4)
print " ('st_bind', %s)" % common_dump.HexDump(st_bind[0], st_bind[1])
print " ('st_type', %s)" % common_dump.HexDump(st_type[0], st_type[1])
- print " ('st_other', %s)" % common_dump.HexDump(f.read8())
+ print " ('st_other', %s)" % common_dump.HexDump(f.read8(), 8)
print " ('st_shndx', %s)" % common_dump.HexDump(f.read16())
if f.is64Bit:
print " ('st_value', %s)" % common_dump.HexDump(f.read64(), 64)