[PATCH] ld/ELF: explicitly place .note.gnu.property
Alan Modra
amodra@gmail.com
Mon Aug 18 07:49:31 GMT 2025
On Mon, Aug 18, 2025 at 09:20:17AM +0200, Jan Beulich wrote:
> On 16.08.2025 03:13, Alan Modra wrote:
> > On Fri, Aug 15, 2025 at 02:23:16PM +0200, Jan Beulich wrote:
> >> As the origin of the
> >> (seemingly mis-spelled) .note.gnu-property there is unclear, leave that
> >> in place.
> >
> > The mis-spelled section should be removed. At the time it was added
> > (commit 7ecf0250f7f0) there were no occurrences of .note.gnu-property
> > in the source, but plenty of .note.gnu.property strings.
>
> Okay, changed for v2. It just wasn't clear to me whether externally uses
> of that section might exist (and we cared about such).
I don't reckon we care. If someone has created such a section, orphan
handling ought to put it somewhere sensible.
> > It might
> > have been better to name the section .note.gnu-property originally,
> > for consistency with other .note.gnu-* sections but we're stuck with
> > the name now.
>
> Then again we also have .note.gnu.build-id. As opposed to .note.GNU-stack,
> for example.
Yes. :-)
> While I have your attention - do you have any insight into the PPC aspect
> mentioned in one of the remarks?
I don't know without looking at it under gdb, but at a guess a stub is
being created with associated linker generated .eh_frame. Later,
since you say .eh_frame is empty, another pass of section sizing makes
the stub no longer needed.
--
Alan Modra
More information about the Binutils
mailing list