BUGFIX: wrong imagebase used

bug/bundler_fix
Sascha Schirra 2014-09-11 12:33:09 +02:00
parent 88cacd000e
commit be0c68d8bb
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Elf < ElfBase
isource.read(offset, PROGRAM_HEADER_SIZE), ei_data
)
if program_header[-1].p_type == PT_LOAD && base_addr == 0
if program_header[-1].p_type == PT_LOAD && program_header[-1].p_flags & PF_EXEC > 0
base_addr = program_header[-1].p_vaddr
end