https://sourceware.org/bugzilla/show_bug.cgi?id=28689
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Fangrui Song from comment #5) > (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 This is roughly what my patch does. -- You are receiving this mail because: You are on the CC list for the bug.