https://sourceware.org/bugzilla/show_bug.cgi?id=28689

--- Comment #5 from Fangrui Song <i at maskray dot me> ---
(In reply to Fangrui Song from comment #4)
> (In reply to H.J. Lu from comment #2)
> > One problem:
> > [...]
> > File offsets are changed.
> 
> For objcopy, it is important to not transform the file to decrease the
> intrinsic max-page-size. This would make the output not runnable on the
> originally supported systems.
> 
> If ld decreases p_align to reduce wasted memory pages, can you describe how
> the objcopy problem (inferring max-page-size) will be solved?
> Note that max-page-size can be trick to infer in the -z noseparate-code case.

Maybe something like gcd({p_vaddr - p_offset}). If the gcd is 0, pick p_align

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to