--- gcc/config/sun2o4.h 2018/04/24 17:54:49 1.1.1.2 +++ gcc/config/sun2o4.h 2018/04/24 18:05:36 1.1.1.3 @@ -92,7 +92,8 @@ the Free Software Foundation, 675 Mass A #endif #undef LINK_SPEC -#define LINK_SPEC "%{!e*:-e start} -dc -dp %{static:-Bstatic}" +#define LINK_SPEC \ + "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic}" #undef ASM_OUTPUT_DOUBLE #define ASM_OUTPUT_DOUBLE(FILE,VALUE) \