https://sourceware.org/bugzilla/show_bug.cgi?id=32961
--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Zhiyuan Lv from comment #15) > (In reply to H.J. Lu from comment #14) > > Created attachment 16086 [details] > > A new patch > > > > Please use this one. > > I tested the latest patch here together with your gcc patch, now both test.c > and kernel build got expected result :-) Below are my test details: Does kernel work correctly? > binutils base: top of master branch > gcc base: 14.2.0 (default version in Ubuntu 24.04) > > 1. compile with "-Wa,--unique-pushsection", the unused functions are removed > by linker as expected. > > 2. no compile option change, but change ".pushsection" to > ".pushuniquesection" in code, the unused functions are removed by linker as > expected. -- You are receiving this mail because: You are on the CC list for the bug.