flags for phdr.p_flags added
BUGFIX: wrong imagebase used
Land #3780, msfelfscan use correct offsets