H.J. Lu via llvm-dev
2021-Oct-28 13:39 UTC
[llvm-dev] [PATCH] Add GNU_PROPERTY_1_GLIBC_2_NEEDED
On Wed, Oct 27, 2021 at 11:52 PM Florian Weimer <fweimer at redhat.com> wrote:> > * 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. >Can you share your concerns? Thanks. -- H.J.
Florian Weimer via llvm-dev
2021-Oct-28 13:43 UTC
[llvm-dev] [PATCH] Add GNU_PROPERTY_1_GLIBC_2_NEEDED
* H. J. Lu:> On Wed, Oct 27, 2021 at 11:52 PM Florian Weimer <fweimer at redhat.com> wrote: >> >> * 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. >> > > Can you share your concerns?See the other thread (mostly on libc-alpha I think). Florian