diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-04 15:10:35 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-04 15:10:35 +0000 |
commit | 79ef75dc490462b091a6c8c9fde8788669cb6665 (patch) | |
tree | 696499ac6c784ceca2ecc6d24c7f88c10f563055 /llvm/test/Scripts | |
parent | 1848231ad1776a8548f674a320bd4ed6d12fc974 (diff) | |
download | bcm5719-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-x | llvm/test/Scripts/elf-dump | 6 |
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: |