https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87864
Bug ID: 87864 Summary: libdruntime doesn't link with /bin/ld before Solaris 11.4 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ro at gcc dot gnu.org Target Milestone: --- Host: *-*-solaris2.* When I tried to build libphobos on Solaris 11.3 (all previous attempts have been on 11.4 or 11.5 Beta), linking libdruntime failed: Undefined first referenced symbol in file __stop_minfo core/.libs/atomic.o (symbol scope specifies local binding) __start_minfo core/.libs/atomic.o (symbol scope specifies local binding) ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status make[4]: *** [Makefile:1709: libgdruntime.la] Error 1 This is no wonder actually, since DCFG_MINFO_BRACKETING=false. Support for the automatic creation of __start_<section> and __stop_<section> symbols (a GNU ld extension) was only added to Solaris ld in 11.4 due to its several uses in LLVM.