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 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q): 2002-11-01 21:49:33 +00:00
sys
__longjmp.S Update. 2002-12-31 20:46:11 +00:00
abort-instr.h
add_n.S
addmul_1.S
asm-syntax.h
backtrace.c
bp-asm.h
bsd-_setjmp.S Update. 2002-12-31 20:46:11 +00:00
bsd-setjmp.S
bzero.c
Dist Update. 2002-08-28 09:31:39 +00:00
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 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 2002-10-11 10:52:20 +00:00
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 Update. 2002-03-15 09:30:44 +00:00
Implies
init-first.c Update. 2002-03-13 06:33:52 +00:00
ldbl2mpn.c
lshift.S
machine-gmon.h Update. 2002-03-15 09:30:44 +00:00
Makefile Update. 2003-09-17 09:39:59 +00:00
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 Update. 2002-03-14 20:48:50 +00:00
mul_1.S
rawmemchr.S Update. 2002-08-03 07:02:10 +00:00
rshift.S
setfpucw.c Update. 2003-07-22 22:28:07 +00:00
setjmp.S
stackinfo.h
stpcpy.S (__stpcpy): Add libc_hidden_def. 2002-08-04 01:22:11 +00:00
stpncpy.S Update. 2002-08-03 07:02:10 +00:00
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_r.S
strtok.S
sub_n.S
submul_1.S
sysdep.h * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for 2003-03-10 09:11:13 +00:00
Versions Update. 2003-04-29 22:49:58 +00:00