OSDN Git Service

Enable initfini array support on Solaris (PR target/50166)
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2012 11:47:25 +0000 (11:47 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2012 11:47:25 +0000 (11:47 +0000)
commit1c6e4ce9d88b644e398b2f4337195cd497841a04
treea77f9137c76c7d39fcac1110b79efb90d3a95ab7
parenteeff6a54fe4eef656054dfb2053e1d4b006720ac
Enable initfini array support on Solaris (PR target/50166)

* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
Define _start.
Remove -e 0 from $gcc_cv_ld invocation.
Only use __GLIBC_PREREQ if defined.
Enable on Solaris since Solaris 8 patch.
(gcc_SUN_LD_VERSION): New macro.
* configure.ac (ld_ver) <*-*-solaris2*>: Refer to
gcc_SUN_LD_VERSION for version number format.
* configure: Regenerate.
* varasm.c (get_elf_initfini_array_priority_section): Set
SECTION_NOTYPE for non-default priority.
Use get_section instead of get_unnamed_section to emit
.init_array/.fini_array with default priority.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184390 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/acinclude.m4
gcc/configure
gcc/configure.ac
gcc/varasm.c