https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86770
Jim Wilson <wilson at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-01 CC| |wilson at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |wilson at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jim Wilson <wilson at gcc dot gnu.org> --- This is actually a linker bug, not a gcc bug, and probably should be refiled in the binutils bugzilla. The symbol is in the tdata section of libstdc++. The RISC-V linker is creating copy relocs from tdata to tdata.dyn in the output file. When marking sections to keep, tdata gets marked as a kept section, but tdata.dyn is apparently not being marked as needed, gets deleted, and the link fails. This appears to be a RISC-V specific feature, so I will need to spend some time to figure out how to handle this.