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

--- Comment #18 from Zhiyuan Lv <zhiyuan.lv at linux dot intel.com> ---
(In reply to H.J. Lu from comment #16)
> (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?

Not yet. My kernel hang in very early boot. --gc-sections seemed to have
deleted more symbols than kernel needs. I am debugging it which will take some
time and will update here when finish. Thanks!

> 
> > 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