[PATCH 1/2] debug: Do not link tst-sprintf-fortify-rdonly against the dlopen module
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Jul 14 16:44:13 GMT 2025
On 11/07/25 11:26, Florian Weimer wrote:
> The test intends to load tst-sprintf-fortify-rdonly-dlopen.so via
> dlopen, and directly linking against it prevents that.
LGTM, thanks.
Reviewed-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
> ---
> debug/Makefile | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/debug/Makefile b/debug/Makefile
> index 40201844b3..9b37669256 100644
> --- a/debug/Makefile
> +++ b/debug/Makefile
> @@ -187,9 +187,9 @@ CFLAGS-tst-sprintf-fortify-rdonly-dlopen.c += $(no-fortify-source) -D_FORTIFY_SO
> CFLAGS-tst-fortify-syslog.c += $(no-fortify-source) -D_FORTIFY_SOURCE=2
> CFLAGS-tst-fortify-wide.c += $(no-fortify-source) -D_FORTIFY_SOURCE=2
>
> -$(objpfx)tst-sprintf-fortify-rdonly: \
> - $(objpfx)tst-sprintf-fortify-rdonly-mod.so \
> - $(objpfx)tst-sprintf-fortify-rdonly-dlopen.so
> +$(objpfx)tst-sprintf-fortify-rdonly: $(objpfx)tst-sprintf-fortify-rdonly-mod.so
> +$(objpfx)tst-sprintf-fortify-rdonly.out: \
> + $(objpfx)tst-sprintf-fortify-rdonly-dlopen.so
>
> # _FORTIFY_SOURCE tests.
> # Auto-generate tests for _FORTIFY_SOURCE for different levels, compilers and
>
> base-commit: 3d3572f59059e2b19b8541ea648a6172136ec42e
More information about the Libc-alpha
mailing list