RFC: [PATCH] ELF: Don't require section header on ELF objects

Florian Weimer fw@deneb.enyo.de
Mon Mar 9 13:29:25 GMT 2020
* Kaylee Blake:

>> I think that's conceptually the wrong thing to do for ELF, sorry.  If
>> there is no section header, the object should be unlinkable.  The
>> linker should not use the dynamic segment to locate the symbol
>> information, only the dynamic section (in case the link ABI and
>> run-time ABI are different).
>
> I'm confused by your comment about link and run-time ABIs differing;
> surely if the ABI at runtime differs from the ABI at link time, you are
> just going to crash at runtime?

No, the typical application are fewer symbols in the DSO at link time
than at load time, for example for linking against an older version of
glibc than is installed on the system.



More information about the Binutils mailing list