add section size information

This commit is contained in:
Hung-Chi Su 2015-09-09 21:16:25 +08:00
parent fa5d801e51
commit 94a229ba46
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ class Elf
flag += (elf.sh[i].sh_flags & 4) > 0 ? "x" : "-"
@sections[elf.sh[i].name_str.to_s]["offset"] = elf.sh[i].sh_addr.to_i
@sections[elf.sh[i].name_str.to_s]["size"] = elf.sh[i].sh_size.to_i
@sections[elf.sh[i].name_str.to_s]["flag"] = flag
end
end