diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-04 14:39:30 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-04 14:39:30 +0000 |
commit | 260af5cef61ebecf07447ccbc6fe05eab7471556 (patch) | |
tree | 14df5a8e266e54ac66501c1dcadf0decde53dfb4 /llvm/test/Scripts | |
parent | 1b282e7e492c04de6755a18f7fce592e11d6316c (diff) | |
download | bcm5719-llvm-260af5cef61ebecf07447ccbc6fe05eab7471556.tar.gz bcm5719-llvm-260af5cef61ebecf07447ccbc6fe05eab7471556.zip |
Print r_type with the correct number of bits.
llvm-svn: 136872
Diffstat (limited to 'llvm/test/Scripts')
-rwxr-xr-x | llvm/test/Scripts/elf-dump | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/test/Scripts/elf-dump b/llvm/test/Scripts/elf-dump index f116e3a0aa0..36e06fbe42c 100755 --- a/llvm/test/Scripts/elf-dump +++ b/llvm/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: |