[llvm-dev] [PATCH] Add GNU_PROPERTY_1_GLIBC_2_NEEDED

Florian Weimer via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 27 23:52:00 PDT 2021


* H. J. Lu via llvm-dev:

> 1. Some binaries which require new ELF features, like DT_RELR, only
> work with the new glibc binary.  They crash at run-time with the older
> glibc binaries.
> 2. Somes binaries compiled with the new language features, like C2X
> printf specifiers, only generate correct results with the new glibc
> binary.  Since we don't add new glibc versions to the printf function
> family, they generate incorrect results at run-time with the older
> glibc binaries.

Solaris uses SHT_SUNW_verneed sections for this, not a property note.
Property notes seem the wrong approach for this.  And there is no reason
to make this specific to glibc.

However, I still very much dislike this proposal.

Thanks,
Florian



More information about the llvm-dev mailing list