[2/2] nptl: Link tst-execstack-threads-mod.so with -z execstack
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
redhat-pt-bot/TryBot-32bit |
success
|
Build for i686
|
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Testing passed
|
Commit Message
This ensures that the test still links with a linker that refuses
to create an executable stack marker automatically.
---
nptl/Makefile | 1 +
1 file changed, 1 insertion(+)
Comments
On 13/11/23 14:21, Florian Weimer wrote:
> This ensures that the test still links with a linker that refuses
> to create an executable stack marker automatically.
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> ---
> nptl/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/nptl/Makefile b/nptl/Makefile
> index 015295e45c..067b01ea8e 100644
> --- a/nptl/Makefile
> +++ b/nptl/Makefile
> @@ -671,6 +671,7 @@ tst-exec4-ARGS = $(host-test-program-cmd)
>
> $(objpfx)tst-execstack-threads.out: $(objpfx)tst-execstack-threads-mod.so
> LDFLAGS-tst-execstack-threads = -Wl,-z,noexecstack
> +LDFLAGS-tst-execstack-threads-mod.so = -Wl,-z,execstack
> CFLAGS-tst-execstack-threads-mod.c += -Wno-trampolines
>
> tst-stackguard1-ARGS = --command "$(host-test-program-cmd) --child"
@@ -671,6 +671,7 @@ tst-exec4-ARGS = $(host-test-program-cmd)
$(objpfx)tst-execstack-threads.out: $(objpfx)tst-execstack-threads-mod.so
LDFLAGS-tst-execstack-threads = -Wl,-z,noexecstack
+LDFLAGS-tst-execstack-threads-mod.so = -Wl,-z,execstack
CFLAGS-tst-execstack-threads-mod.c += -Wno-trampolines
tst-stackguard1-ARGS = --command "$(host-test-program-cmd) --child"