From c701eb9f5b03f8bfb4fa6b6b94dcc992ed1a781e Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 21 May 2014 19:04:48 +0300 Subject: [PATCH] outputting hex for better comparison with objdump --- lib/elf/text_section.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elf/text_section.rb b/lib/elf/text_section.rb index a787c504..ca3a03cc 100644 --- a/lib/elf/text_section.rb +++ b/lib/elf/text_section.rb @@ -18,7 +18,7 @@ module Elf @text.length end def to_s - "[" + @text.bytes.join(",") + "]" + "[" + @text.bytes.collect{|b| "0x"+ b.to_s(16)}.join(",") + "]" end def alignment 4