[RFC] SHF_GNU_RETAIN ELF Section Flag

Jozef Lawrynowicz jozef.l@mittosystems.com
Mon Sep 21 18:53:00 GMT 2020


On Mon, Sep 21, 2020 at 12:42:55PM +0000, Michael Matz wrote:
> Hello,
> 
> On Fri, 18 Sep 2020, Florian Weimer via Gnu-gabi wrote:
> 
> > * Jozef Lawrynowicz:
> > 
> > > Unless we are trying to be protective of the remaining operating
> > > system-specific section flag bits, I don't really see any downside to
> > > going the route of SHF_GNU_RETAIN. It is very simple, the linker
> > > implementation requires only one additional line of code, and the
> > > definition precisely describes how the section should be treated.
> > >
> > > SHF_GNU_RETAIN
> > >   The link editor should not garbage collect the section if it is
> > >   unused.
> > 
> > I don't have any objections to this wording.
> 
> Me neither.

Thanks everyone for the feedback.

I'm finalizing the patch so the tests work for all Binutils ELF targets,
and will be posting to the Binutils ML soon, with the GCC patch to
follow once that is applied.

Regards,
Jozef


More information about the Gnu-gabi mailing list