https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126723
--- Comment #12 from Iain Sandoe <iains at gcc dot gnu.org> --- thanks, I am testing a fix. I'd like to find a more general solution - but "just make all symbols linker-visible" is not it - that would be bad for linker load. The question that is hard to answer generically is "does this internal symbol follow a public one in the same section"? Outside implementing the Mach-O ld 'atom model' that isn't really something that the compiler has any reason to keep track of and this compiler does not track it - although it is gradually growing facilities as the linker becomes more picky.
