-2003-09-23 Ulrich Drepper <drepper@redhat.com>
+2003-09-24 Ulrich Drepper <drepper@redhat.com>
* nscd/Makefile: Add rules to build nscd as a PIE.
+ * configure.in: Check for -fpie and -pie compiler options.
+ * config.make.in (have-fpie): Define.
2003-09-23 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
kernel dev_t size.
- * sysdeps/unix/sysv/linux/sys/alpha/sysmacros.h: Removed.
- * sysdeps/unix/sysv/linux/sys/sparc/sysmacros.h: Removed.
+ * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
+ * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
* sysdeps/unix/sysv/linux/makedev.c: New file.
* sysdeps/unix/sysv/linux/Dist: Add makedev.c.
* sysdeps/unix/sysv/linux/Makefile [subdir=misc]
have-cpp-asm-debuginfo = @libc_cv_cpp_asm_debuginfo@
enable-check-abi = @enable_check_abi@
have-forced-unwind = @libc_cv_forced_unwind@
+have-fpie = @libc_cv_fpie@
static-libgcc = @libc_cv_gcc_static_libgcc@
fi
rm -f conftest*])
AC_SUBST(libc_cv_z_execstack)
+
+ AC_CACHE_CHECK(for -fpie, libc_cv_fpie, [dnl
+ cat > conftest.c <<EOF
+int foo;
+EOF
+ if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
+ -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
+ then
+ libc_cv_fpie=yes
+ else
+ libc_cv_fpie=no
+ fi
+ rm -f conftest*])
+
+ AC_SUBST(libc_cv_fpie)
fi
if test $elf != yes; then
+2003-09-24 Ulrich Drepper <drepper@redhat.com>
+
+ * Makefile: Build tst-execstack-mod locally.
+ * tst-execstack-mod.c: New file.
+
2003-09-23 Jakub Jelinek <jakub@redhat.com>
* Makefile (tests): Only add tst-execstack if have-z-execstack is yes.
modules-names = tst-atfork2mod tst-tls3mod tst-tls4moda tst-tls4modb \
tst-tls5mod tst-tls5moda tst-tls5modb tst-tls5modc \
tst-tls5modd tst-tls5mode tst-tls5modf \
- tst-_res1mod1 tst-_res1mod2
+ tst-_res1mod1 tst-_res1mod2 tst-execstack-mod
extra-objs += $(addsuffix .os,$(strip $(modules-names)))
test-extras += $(modules-names)
test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
tst-exec4-ARGS = $(built-program-cmd)
$(objpfx)tst-execstack: $(libdl)
-$(objpfx)tst-execstack.out: $(elf-objpfx)tst-execstack-mod.so
+$(objpfx)tst-execstack.out: $(objpfx)tst-execstack-mod.so
LDFLAGS-tst-execstack = -Wl,-z,noexecstack
--- /dev/null
+#include "../elf/tst-execstack-mod.c"