https://sourceware.org/bugzilla/show_bug.cgi?id=27495
--- Comment #9 from Fangrui Song <i at maskray dot me> --- (In reply to H.J. Lu from comment #8) > (In reply to Alan Modra from comment #7) > > > > It is true that --start-stop-gc may break linking with current static glibc, > > a fact that limits --start-stop-gc usefulness. > > > > BTW, this testcase also shows an interaction between section groups and > > start/stop symbol gc. If you move the foo reference before the __start_xx > > reference then no magic linker marking of xx sections happens. > > > > It is not just static glibc. PR 19161 has another usage. David Li is a main reviewer of LLVM PGO. He should be happy if GNU ld and gold can now garbage collect PGO sections https://reviews.llvm.org/D97649#inline-915909 (he asked me to add some tests for GNU ld and gold). PR19161 was filed in an era (where gold had the rule and GNU ld didn't) when they probably needed this for some other experiments, but there are now better approaches retaining such sections (SHF_GNU_RETAIN). `__start_xx retaining xx input sections` is outdated. -- You are receiving this mail because: You are on the CC list for the bug.