[PATCH] Add GLIBC_PRIVATE_RELR as proxy for DT_RELR
Florian Weimer
fweimer@redhat.com
Fri Nov 19 15:30:31 GMT 2021
* H. J. Lu:
> Executables with DT_RELR will crash mysteriously with glibc binaries
> without DT_RELR support. Bump EI_ABIVERSION won't prevent crash since
> the Linux kernel loader doesn't check EI_ABIVERSION on executables.
> Adding a glibc version dependency on the first glibc version with
> DT_RELR support will prevent backporting DT_RELR support to released
> glibc branches.
>
> Add a GLIBC_PRIVATE_RELR version as a proxy for DT_RELR support in glibc.
> Linker should add the GLIBC_PRIVATE_RELR version dependency on binaries
> with DT_RELR. GLIBC_PRIVATE_RELR should be backported together when
> backporting DT_RELR support.
I don't like it. What's wrong about EI_ABIVERSION?
The kernel doesn't need to check EI_ABIVERSION because it does not do
relocation processing.
Thanks,
Florian
More information about the Libc-alpha
mailing list