[RFC][PATCH v6 18/20] Add DT_GNU_FLAGS_1/DF_GNU_1_UNIQUE dynamic section+flag to glibc DSOs
Samuel Thibault
samuel.thibault@ens-lyon.org
Tue Dec 15 18:56:50 GMT 2020
Hello,
Vivek Das Mohapatra via Libc-alpha, le mar. 15 déc. 2020 18:44:58 +0000, a ecrit:
> libc.so, libpthread.so etc should have the new unique-dso-by-default
> flag set to allow dlmopen to work better (libc et al instance shared
> by default when DSOs dlmopened into a new namespace).
> ---
> diff --git a/nptl/Makefile b/nptl/Makefile
> index ddd83dfbdd..314931cbaa 100644
> --- a/nptl/Makefile
> +++ b/nptl/Makefile
> @@ -354,7 +354,7 @@ else
> tests-printers-libs := $(static-thread-library)
> endif
>
> -LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst
> +LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,unique,-z,nodelete,-z,initfirst
>
> tests += tst-cancelx7 tst-cancelx17 tst-cleanupx4
Please also do the same in htl/Makefile
Samuel
More information about the Libc-alpha
mailing list