https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106691
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Summary|Section anchors is not |Section anchors is not |implemented for riscv |efficient for riscv Last reconfirmed| |2022-08-19 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Oh it is because -msmall-data-limit defaults to 8. And default_use_anchors_for_symbol_p returns false for small data sections: /* Don't use anchors for small data sections. The small data register acts as an anchor for such sections. */ if (sect->common.flags & SECTION_SMALL) return false; But there is no small data register ...