unify RVAToOffset between ELF and PE