https://sourceware.org/bugzilla/show_bug.cgi?id=32961

--- Comment #15 from Zhiyuan Lv <zhiyuan.lv at linux dot intel.com> ---
(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:

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.

Reply via email to