From c70ba48888000f00556aa91348c9c5a33a508b49 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 24 Sep 2003 01:56:08 +0000 Subject: * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize GL(dl_stack_flags) according to rtld's own PT_GNU_STACK. Move GL(dl_make_stack_executable_hook) initialization up. * elf/tst-execstack-prog.c: New file. * elf/Makefile (tests-execstack-yes): Add it. (LDFLAGS-tst-execstack-prog): New variable. --- elf/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'elf/Makefile') diff --git a/elf/Makefile b/elf/Makefile index 36f205a..2e6b6cb 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -159,7 +159,7 @@ test-srcs = tst-pathopt tests-vis-yes = vismain tests-nodelete-yes = nodelete nodelete2 tests-nodlopen-yes = nodlopen nodlopen2 -tests-execstack-yes = tst-execstack tst-execstack-needed +tests-execstack-yes = tst-execstack tst-execstack-needed tst-execstack-prog endif modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \ testobj1_1 failobj constload2 constload3 unloadmod \ @@ -673,6 +673,8 @@ LDFLAGS-tst-execstack-mod = -Wl,-z,execstack $(objpfx)tst-execstack-needed: $(objpfx)tst-execstack-mod.so LDFLAGS-tst-execstack-needed = -Wl,-z,noexecstack + +LDFLAGS-tst-execstack-prog = -Wl,-z,execstack endif $(objpfx)tst-array1.out: $(objpfx)tst-array1 -- cgit v1.1