[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-16 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #29 from Zhiyuan Lv --- (In reply to H.J. Lu from comment #27) > Created attachment 16097 [details] > A patch without new directive > > Please try this. Sorry for the late! I tried the new patch with the test case compilation and

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-16 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #28 from Zhiyuan Lv --- (In reply to H.J. Lu from comment #26) > (In reply to H.J. Lu from comment #25) > > Created attachment 16096 [details] > > A patch to add .pushuniqsect > > > > Please retry with .pushuniqsect. > > Jan prop

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-15 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #24 from Zhiyuan Lv --- (In reply to H.J. Lu from comment #23) > Created attachment 16095 [details] > The final patch > > This is the final patch I am submitting. Please test. Tested with both my small test case here and kernel

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-15 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #21 from Zhiyuan Lv --- (In reply to H.J. Lu from comment #13) > (In reply to Zhiyuan Lv from comment #12) > > Hi H.J., > > > > On Tue, May 13, 2025 at 07:15:14AM +, hjl.tools at gmail dot com wrote: > > > https://sourceware.o

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-15 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #20 from Zhiyuan Lv --- (In reply to H.J. Lu from comment #19) > (In reply to Zhiyuan Lv from comment #18) > > (In reply to H.J. Lu from comment #16) > > > (In reply to Zhiyuan Lv from comment #15) > > > > (In reply to H.J. Lu from

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-13 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #18 from Zhiyuan Lv --- (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 us

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-13 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #15 from Zhiyuan Lv --- (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 bu

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-13 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #12 from Zhiyuan Lv --- Hi H.J., On Tue, May 13, 2025 at 07:15:14AM +, hjl.tools at gmail dot com wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=32961 > > --- Comment #8 from H.J. Lu --- > (In reply to Zhiyuan Lv f

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-13 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #6 from Zhiyuan Lv --- (In reply to H.J. Lu from comment #5) > Created attachment 16083 [details] > A patch to add --unique-pushsection and .pushuniquesection > > Try this. Hi H.J, the patch works nicely with my simple test case,

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-13 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #9 from Zhiyuan Lv --- (In reply to H.J. Lu from comment #8) > (In reply to Zhiyuan Lv from comment #7) > > And, the GCC version I used is 14.2.0, which will generate per function > > section of "__patchable_function_entries". Than

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-13 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #7 from Zhiyuan Lv --- And, the GCC version I used is 14.2.0, which will generate per function section of "__patchable_function_entries". Thanks! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-12 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 --- Comment #2 from Zhiyuan Lv --- Thanks H.J. for the comments! (In reply to H.J. Lu from comment #1) > (In reply to Zhiyuan Lv from comment #0) > > > > If all above is correct, could we consider below two options? > > > > 1. Add a new type

[Bug ld/32961] ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-12 Thread zhiyuan.lv at linux dot intel.com
https://sourceware.org/bugzilla/show_bug.cgi?id=32961 Zhiyuan Lv changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are r

[Bug ld/32961] New: ".pushsection" may introduce unnecessary section dependency which impacts "--gc-sections"

2025-05-12 Thread zhiyuan.lv at linux dot intel.com
Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: zhiyuan.lv at linux dot intel.com Target Milestone: --- While compiling some Linux kernel files with "-ffunction-sections&qu