https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69357
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Btw, might be an interesting interaction between --no-add-needed and --as-needed as well (--as-needed is used by default by us). But that would point to a linker issue. No testcase - this was observed when compiling docker 1.8.3 with GCC 5 and gccgo on s390x with -static-libgo (plus --as-needed, --no-add-needed is the default AFAIK). But it might be "easy" to create an artificial testcase that fails the same way. Anyway, the _end reference is surely weird (given the shared libgo will provide it itself).