summaryrefslogtreecommitdiffstats
path: root/llvm/test/Scripts
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-08-04 15:10:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-08-04 15:10:35 +0000
commit79ef75dc490462b091a6c8c9fde8788669cb6665 (patch)
tree696499ac6c784ceca2ecc6d24c7f88c10f563055 /llvm/test/Scripts
parent1848231ad1776a8548f674a320bd4ed6d12fc974 (diff)
downloadbcm5719-llvm-79ef75dc490462b091a6c8c9fde8788669cb6665.tar.gz
bcm5719-llvm-79ef75dc490462b091a6c8c9fde8788669cb6665.zip
Print st_bind with the correct number of bits.
llvm-svn: 136874
Diffstat (limited to 'llvm/test/Scripts')
-rwxr-xr-xllvm/test/Scripts/elf-dump6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/Scripts/elf-dump b/llvm/test/Scripts/elf-dump
index 33581f45bc5..a94079c5241 100755
--- a/llvm/test/Scripts/elf-dump
+++ b/llvm/test/Scripts/elf-dump
@@ -104,8 +104,10 @@ def dumpSymtab(f, section, strtab):
print " ('st_value', %s)" % common_dump.HexDump(f.read32())
print " ('st_size', %s)" % common_dump.HexDump(f.read32())
st_info = f.read8()
- print " ('st_bind', %s)" % common_dump.HexDump((st_info >> 4))
- print " ('st_type', %s)" % common_dump.HexDump((st_info & 0xf))
+ st_bind = (st_info >> 4, 4)
+ 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], 32)
print " ('st_other', %s)" % common_dump.HexDump(f.read8())
print " ('st_shndx', %s)" % common_dump.HexDump(f.read16())
if f.is64Bit:
OpenPOWER on IntegriCloud