https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88643
--- Comment #7 from Дилян Палаузов <dilyan.palauzov at aegee dot org> --- As noted at https://sourceware.org/bugzilla/show_bug.cgi?id=24406 this does work with clang+gold and clang+lld, but not with clang+bfd. As this does not work with gcc+gold, the problem is not in the linker.