[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28689] p_align in ELF program headers should not exceed se
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug binutils/28689] p_align in ELF program headers should not exceed section alignment |
Date: |
Tue, 14 Dec 2021 14:14:14 +0000 |
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.
- [Bug binutils/28689] New: p_align in ELF program headers should not exceed section alignment, fweimer at redhat dot com, 2021/12/13
- [Bug binutils/28689] p_align in ELF program headers should not exceed section alignment, hjl.tools at gmail dot com, 2021/12/13
- [Bug binutils/28689] p_align in ELF program headers should not exceed section alignment, hjl.tools at gmail dot com, 2021/12/13
- [Bug binutils/28689] p_align in ELF program headers should not exceed section alignment, hjl.tools at gmail dot com, 2021/12/13
- [Bug binutils/28689] p_align in ELF program headers should not exceed section alignment, hjl.tools at gmail dot com, 2021/12/13
- [Bug binutils/28689] p_align in ELF program headers should not exceed section alignment, i at maskray dot me, 2021/12/14
- [Bug binutils/28689] p_align in ELF program headers should not exceed section alignment, i at maskray dot me, 2021/12/14
- [Bug binutils/28689] p_align in ELF program headers should not exceed section alignment,
hjl.tools at gmail dot com <=