gcc/libgcc
Rainer Orth df2a1cc48b Support PIE on Solaris
gcc/testsuite:
	* lib/target-supports.exp (check_effective_target_pie): Check for
	PIE support on Solaris 11.x and 12.

	libgcc:
	* config.host (*-*-solaris2*): Add t-crtstuff-pic to tmake_file.
	Add crtbeginS.o, crtendS.o to extra_parts if libgcc_cv_solaris_crts.
	* config/sol2/gmon.c: (monstartup): Don't write trailing NUL of
	messages.
	(internal_mcount): Likewise.
	* config/sol2/t-sol2 (crtp.o, crtpg.o, gmon.o): Compile with
	crt_compile, add CRTSTUFF_T_CFLAGS_S.

	gcc:
	* configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
	Check for ld -type pie on Solaris 11.x and 12.
	* configure: Regenerate.
	* config.in: Regenerate.

	* gcc.c (LD_PIE_SPEC): Allow redefinition.

	* config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
	(STARTFILE_SPEC): Use it.
	(ENDFILE_CRTEND_SPEC): Define.
	(ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
	(SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
	ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
	[HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
	(!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
	* config/i386/sol2.h (ENDFILE_SPEC): Remove.
	(ENDFILE_ARCH_SPEC): Define.
	* config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.

From-SVN: r228078
2015-09-24 09:00:22 +00:00
..
config Support PIE on Solaris 2015-09-24 09:00:22 +00:00
soft-fp Update soft-fp from glibc. 2014-10-09 19:21:30 +01:00
ChangeLog Support PIE on Solaris 2015-09-24 09:00:22 +00:00
config.host Support PIE on Solaris 2015-09-24 09:00:22 +00:00
config.in Support PIE on Solaris 2015-09-24 09:00:22 +00:00
configure Use CRTs provided by Solaris 2015-09-24 08:51:39 +00:00
configure.ac Use CRTs provided by Solaris 2015-09-24 08:51:39 +00:00
crtstuff.c Update copyright years. 2015-01-05 13:33:28 +01:00
dfp-bit.c Update copyright years. 2015-01-05 13:33:28 +01:00
dfp-bit.h Update copyright years. 2015-01-05 13:33:28 +01:00
divmod.c Update copyright years. 2015-01-05 13:33:28 +01:00
empty.mk
emutls.c Update copyright years. 2015-01-05 13:33:28 +01:00
enable-execute-stack-empty.c
enable-execute-stack-mprotect.c Update copyright years. 2015-01-05 13:33:28 +01:00
find-symver.awk Update copyright years. 2015-01-05 13:33:28 +01:00
fixed-bit.c Update copyright years. 2015-01-05 13:33:28 +01:00
fixed-bit.h Update copyright years. 2015-01-05 13:33:28 +01:00
fixed-obj.mk
floatunsidf.c
floatunsisf.c
floatunsitf.c
floatunsixf.c
fp-bit.c Update copyright years. 2015-01-05 13:33:28 +01:00
fp-bit.h Update copyright years. 2015-01-05 13:33:28 +01:00
gbl-ctors.h Update copyright years. 2015-01-05 13:33:28 +01:00
gen-fixed.sh
generic-morestack-thread.c Update copyright years. 2015-01-05 13:33:28 +01:00
generic-morestack.c rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK): Define. 2015-05-20 10:56:28 +09:30
generic-morestack.h Update copyright years. 2015-01-05 13:33:28 +01:00
gstdint.h
gthr-posix.h Update copyright years. 2015-01-05 13:33:28 +01:00
gthr-single.h gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Use empty do-while loop as macro body to avoid warnings. 2015-04-15 09:29:12 -06:00
gthr.h Update copyright years. 2015-01-05 13:33:28 +01:00
libgcc2.c Update copyright years. 2015-01-05 13:33:28 +01:00
libgcc2.h Update copyright years. 2015-01-05 13:33:28 +01:00
libgcc-std.ver.in Update copyright years. 2015-01-05 13:33:28 +01:00
libgcov-driver-system.c re PR gcov-profile/61889 (gcov-tool.c uses nftw, ftw.h) 2015-02-10 15:13:13 +01:00
libgcov-driver.c Update copyright years. 2015-01-05 13:33:28 +01:00
libgcov-interface.c Update copyright years. 2015-01-05 13:33:28 +01:00
libgcov-merge.c Update copyright years. 2015-01-05 13:33:28 +01:00
libgcov-profiler.c Update copyright years. 2015-01-05 13:33:28 +01:00
libgcov-util.c libgcov-util.c: Add space between string literal and macro name. 2015-05-12 16:40:49 +02:00
libgcov.h Update copyright years. 2015-01-05 13:33:28 +01:00
Makefile.in Add --enable-default-pie option to GCC configure 2015-05-27 19:36:55 -07:00
memcmp.c
memcpy.c
memmove.c
memset.c
mkheader.sh Update copyright years. 2015-01-05 13:33:28 +01:00
mkmap-flat.awk Update copyright years. 2015-01-05 13:33:28 +01:00
mkmap-symver.awk Update copyright years. 2015-01-05 13:33:28 +01:00
offloadstuff.c mkoffload.c (process): Constify host data. 2015-07-17 17:12:01 +00:00
shared-object.mk Add the nvptx port. 2014-11-10 16:12:42 +00:00
siditi-object.mk
static-object.mk Add the nvptx port. 2014-11-10 16:12:42 +00:00
sync.c Update copyright years. 2015-01-05 13:33:28 +01:00
udivmod.c Update copyright years. 2015-01-05 13:33:28 +01:00
udivmodsi4.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-arm-common.inc Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-c.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-compat.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-compat.h Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-dw2-fde-compat.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-dw2-fde-dip.c unwind fix for musl 2015-04-22 14:20:01 +00:00
unwind-dw2-fde.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-dw2-fde.h unwind-dw2-fde.h (last_fde): Use "(const fde *)" instead of "(char *)" to avoid qualifier warning by 'xgcc'... 2015-01-22 09:22:31 -07:00
unwind-dw2.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-dw2.h Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-generic.h Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-pe.h Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-seh.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-sjlj.c Update copyright years. 2015-01-05 13:33:28 +01:00
unwind.inc Update copyright years. 2015-01-05 13:33:28 +01:00
vtv_end_preinit.c Update copyright years. 2015-01-05 13:33:28 +01:00
vtv_end.c Update copyright years. 2015-01-05 13:33:28 +01:00
vtv_start_preinit.c Update copyright years. 2015-01-05 13:33:28 +01:00
vtv_start.c Update copyright years. 2015-01-05 13:33:28 +01:00