glibc/sysdeps/i386
Roland McGrath 2abf9ff113 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
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.
2003-09-23 12:07:26 +00:00
..
bits Update. 2003-09-05 10:03:19 +00:00
elf Update. 2003-05-28 19:56:24 +00:00
fpu Update. 2003-07-22 22:28:07 +00:00
i486 Update. 2003-09-05 10:03:19 +00:00
i586 Update. 2003-04-29 22:49:58 +00:00
i686 Update. 2003-09-17 18:23:49 +00:00
i786
soft-fp
sys
Dist
Implies
Makefile Update. 2003-09-17 09:39:59 +00:00
Versions Update. 2003-04-29 22:49:58 +00:00
__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
dl-machine.h * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before 2003-09-23 12:07:26 +00:00
dl-tls.h
ffs.c
fpu_control.h Update. 2003-07-22 22:28:07 +00:00
gccframe.h
gmp-mparam.h
htonl.S
htons.S
i386-mcount.S
init-first.c
ldbl2mpn.c
lshift.S
machine-gmon.h
memchr.S Update. 2003-04-29 22:49:58 +00:00
memcmp.S
memcopy.h
memset.c Update. 2003-04-29 22:49:58 +00:00
memusage.h
mp_clz_tab.c
mul_1.S
rawmemchr.S
rshift.S
setfpucw.c Update. 2003-07-22 22:28:07 +00:00
setjmp.S
stackinfo.h
stpcpy.S
stpncpy.S
strchr.S Update. 2003-04-29 22:49:58 +00:00
strchrnul.S
strcspn.S Update. 2003-04-29 22:49:58 +00:00
string-inlines.c Update. 2003-04-29 22:49:58 +00:00
strlen.c Update. 2003-04-29 22:49:58 +00:00
strpbrk.S Update. 2003-04-29 22:49:58 +00:00
strrchr.S Update. 2003-04-29 22:49:58 +00:00
strspn.S Update. 2003-04-29 22:49:58 +00:00
strtok.S
strtok_r.S
sub_n.S
submul_1.S
sysdep.h