--- gcc/config/alpha/osf12.h 2018/04/24 18:16:15 1.1 +++ gcc/config/alpha/osf12.h 2018/04/24 18:22:27 1.1.1.2 @@ -26,4 +26,5 @@ the Free Software Foundation, 675 Mass A #undef LINK_SPEC #define LINK_SPEC \ - "-G 8 -O1 %{static:-non_shared} %{!static:-call_shared}" + "-G 8 -O1 %{!shared:-init __main} %{static:-non_shared} + %{!static:%{shared:-shared} %{!shared:-call_shared}}"