codegen: fixed crash on risc architectures because of missing i_size