RFC: [PATCH] ELF: Don't require section header on ELF objects
Michael Matz
matz@suse.de
Mon Mar 9 14:34:12 GMT 2020
Hello,
On Tue, 10 Mar 2020, Alan Modra wrote:
> On Mon, Mar 09, 2020 at 11:24:44PM +1030, Kaylee Blake wrote:
> > On 9/3/20 6:43 pm, Florian Weimer wrote:
> > > In my opinion, it should NOT be possible to link against objects
> > > without section headers. Lack of section headers clearly marks the
> > > object as a run-time only object. This is useful if you want to
> > > prevent developers to create DT_NEEDED dependencies on internal
> > > libraries, for example.
>
> I agree.
Me as well, as much as I like the cute hack of reconstructing the linking
view from only the executable view. (We probably could make everything
work with some additional constraints that give us some guarantees, but I
don't think that's in the spirit of ELF).
Ciao,
Michael.
More information about the Binutils
mailing list