mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 15:00:06 +00:00
2abf9ff113
calling _dl_start, using GOTOFF access. * configure.in (libc_cv_z_execstack): New check. * configure: Regenerated. * config.make.in (have-z-execstack): New variable set by it. * elf/tst-execstack.c: New file. * elf/tst-execstack-mod.c: New file. * elf/tst-execstack-needed.c: New file. * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New variables. (tests, modules-names): Conditionally include them. (distribute): Add tst-execstack-mod.c here. ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets. (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables. ($(objpfx)tst-execstack-needed): New target. (LDFLAGS-tst-execstack-needed): New variable. * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable. * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags. (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr. Initialize _dl_make_stack_executable_hook. * elf/dl-support.c: Define those new variables. (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK. (_dl_phdr): Fix type. * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and enable execute permission for the stack if necessary. * sysdeps/generic/dl-execstack.c: New file. * elf/Makefile (dl-routines): Add it. * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable. * sysdeps/unix/sysv/linux/dl-execstack.c: New file. |
||
---|---|---|
.. | ||
bits | ||
elf | ||
fpu | ||
i486 | ||
i586 | ||
i686 | ||
i786 | ||
soft-fp | ||
sys | ||
__longjmp.S | ||
abort-instr.h | ||
add_n.S | ||
addmul_1.S | ||
asm-syntax.h | ||
backtrace.c | ||
bp-asm.h | ||
bsd-_setjmp.S | ||
bsd-setjmp.S | ||
bzero.c | ||
Dist | ||
dl-machine.h | ||
dl-tls.h | ||
ffs.c | ||
fpu_control.h | ||
gccframe.h | ||
gmp-mparam.h | ||
htonl.S | ||
htons.S | ||
i386-mcount.S | ||
Implies | ||
init-first.c | ||
ldbl2mpn.c | ||
lshift.S | ||
machine-gmon.h | ||
Makefile | ||
memchr.S | ||
memcmp.S | ||
memcopy.h | ||
memset.c | ||
memusage.h | ||
mp_clz_tab.c | ||
mul_1.S | ||
rawmemchr.S | ||
rshift.S | ||
setfpucw.c | ||
setjmp.S | ||
stackinfo.h | ||
stpcpy.S | ||
stpncpy.S | ||
strchr.S | ||
strchrnul.S | ||
strcspn.S | ||
string-inlines.c | ||
strlen.c | ||
strpbrk.S | ||
strrchr.S | ||
strspn.S | ||
strtok_r.S | ||
strtok.S | ||
sub_n.S | ||
submul_1.S | ||
sysdep.h | ||
Versions |