outputting hex for better comparison with objdump

This commit is contained in:
Torsten Ruger 2014-05-21 19:04:48 +03:00
parent 127ce5a5d9
commit c701eb9f5b

View File

@ -18,7 +18,7 @@ module Elf
@text.length @text.length
end end
def to_s def to_s
"[" + @text.bytes.join(",") + "]" "[" + @text.bytes.collect{|b| "0x"+ b.to_s(16)}.join(",") + "]"
end end
def alignment def alignment
4 4