https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78191
--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> --- Created attachment 39952 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39952&action=edit i386-pc-solaris2.10 auto-host.h Sure, and for the reference, here's the diff between the Solaris 10 and 12 ones: --- /homes/ro/auto-host.h.s10 2016-11-02 20:01:48.430054000 +0000 +++ trunk/12-gcc/build/gcc/auto-host.h 2016-11-02 20:49:06.719315248 +0000 @@ -71 +71 @@ -/* #undef DEFAULT_USE_CXA_ATEXIT */ +#define DEFAULT_USE_CXA_ATEXIT 2 @@ -194 +194 @@ -/* #undef ENABLE_PLUGIN */ +#define ENABLE_PLUGIN 1 @@ -735 +735 @@ -#define HAVE_COMDAT_GROUP 0 +#define HAVE_COMDAT_GROUP 1 @@ -969 +969 @@ -#define HAVE_DECL_MADVISE 0 +#define HAVE_DECL_MADVISE 1 @@ -1038 +1038 @@ -#define HAVE_DECL_STPCPY 0 +#define HAVE_DECL_STPCPY 1 @@ -1045 +1045 @@ -#define HAVE_DECL_STRNLEN 0 +#define HAVE_DECL_STRNLEN 1 @@ -1140 +1140 @@ -#define HAVE_EXT_HASH_MAP 1 +/* #undef HAVE_EXT_HASH_MAP */ @@ -1405 +1405 @@ -#define HAVE_INITFINI_ARRAY_SUPPORT 0 +#define HAVE_INITFINI_ARRAY_SUPPORT 1 @@ -1466 +1466 @@ -/* #undef HAVE_LD_AS_NEEDED */ +#define HAVE_LD_AS_NEEDED 1 @@ -1491 +1491 @@ -#define HAVE_LD_COMPRESS_DEBUG 0 +#define HAVE_LD_COMPRESS_DEBUG 3 @@ -1503 +1503 @@ -#define HAVE_LD_EH_FRAME_CIEV3 0 +#define HAVE_LD_EH_FRAME_CIEV3 1 @@ -1508 +1508 @@ -/* #undef HAVE_LD_EH_FRAME_HDR */ +#define HAVE_LD_EH_FRAME_HDR 1 @@ -1545 +1545 @@ -/* #undef HAVE_LD_PIE */ +#define HAVE_LD_PIE 1 @@ -1714 +1714 @@ -/* #undef HAVE_SOLARIS_CRTS */ +#define HAVE_SOLARIS_CRTS 1 @@ -1867 +1867 @@ -/* #undef HAVE_UNORDERED_MAP */ +#define HAVE_UNORDERED_MAP 1 @@ -1971 +1971 @@ -/* #undef LD_AS_NEEDED_OPTION */ +#define LD_AS_NEEDED_OPTION "-z ignore" @@ -1977 +1977 @@ -#define LD_COMPRESS_DEBUG_OPTION "" +#define LD_COMPRESS_DEBUG_OPTION "-z compress-sections" @@ -1989 +1989 @@ -/* #undef LD_NO_AS_NEEDED_OPTION */ +#define LD_NO_AS_NEEDED_OPTION "-z record" @@ -2134 +2134 @@ -/* #undef TARGET_DL_ITERATE_PHDR */ +#define TARGET_DL_ITERATE_PHDR 1