[Bug ld/32896] GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-29 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32896 --- Comment #17 from Matthew Malcomson --- (In reply to H.J. Lu from comment #16) > (In reply to Matthew Malcomson from comment #14) > > (In reply to H.J. Lu from comment #12) > > > Created attachment 16054 [details] > > > A patch > > > > > >

[Bug ld/32896] GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-29 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32896 --- Comment #14 from Matthew Malcomson --- (In reply to H.J. Lu from comment #12) > Created attachment 16054 [details] > A patch > > Please try this one on the current master branch. It seems to exhibit the same problem. I think it's doing

[Bug ld/32896] GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-29 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32896 --- Comment #13 from Matthew Malcomson --- Created attachment 16055 --> https://sourceware.org/bugzilla/attachment.cgi?id=16055&action=edit Default AArch64 linker script with slightly modified .tbss/.tdata order As requested, the hacked lin

[Bug ld/32896] GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-29 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32896 --- Comment #10 from Matthew Malcomson --- (In reply to H.J. Lu from comment #9) > (In reply to Matthew Malcomson from comment #8) > > (In reply to H.J. Lu from comment #6) > > > (In reply to Matthew Malcomson from comment #5) > > > > I think

[Bug ld/32896] GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-29 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32896 --- Comment #8 from Matthew Malcomson --- (In reply to H.J. Lu from comment #6) > (In reply to Matthew Malcomson from comment #5) > > I think that this proposed patch could allow putting the PT_TLS segment > > offset past the end of the file (

[Bug ld/32896] GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-28 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32896 --- Comment #5 from Matthew Malcomson --- I think that this proposed patch could allow putting the PT_TLS segment offset past the end of the file (that I think was a problem in https://sourceware.org/bugzilla/show_bug.cgi?id=12921 ). This bec

[Bug ld/32896] GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-23 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32896 --- Comment #1 from Matthew Malcomson --- Created attachment 16045 --> https://sourceware.org/bugzilla/attachment.cgi?id=16045&action=edit WIP-patch-for-comment Adding a WIP patch that is at least passing this testcase. Mostly I'm attachin

[Bug ld/32896] New: GNU ld does not enforce PT_TLS segment p_offset/p_vaddr congruity with p_align

2025-04-22 Thread mmalcomson at nvidia dot com
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: mmalcomson at nvidia dot com Target Milestone: --- Created attachment 16040 --> https://sourceware.org/bugzilla/attachment.cgi?id=16040&acti

[Bug ld/32238] Performance issues found from binutils version '2.36' version while usage of function 'lang_output_section_statement_lookup'

2025-01-09 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #22 from Matthew Malcomson --- (In reply to Alan Modra from comment #21) > Thanks for testing Matthew, and for submitting the patches. You caring > enough to submit fixes convinced me that I ought to act. Thanks Alan! And I appr

[Bug ld/32238] Performance issues found from binutils version '2.36' version while usage of function 'lang_output_section_statement_lookup'

2025-01-09 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #19 from Matthew Malcomson --- (In reply to Alan Modra from comment #18) > Created attachment 15869 [details] > proposed fix > > would someone easily able to test performance of this patch, please try it > out. I can confirm that

[Bug binutils/32238] Performance issues found from binutils version '2.36' version while usage of function 'lang_output_section_statement_lookup'

2025-01-02 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #17 from Matthew Malcomson --- Created attachment 15868 --> https://sourceware.org/bugzilla/attachment.cgi?id=15868&action=edit Assembler creates unique names Option (3) -- assembler creates object-unique names for SHT_GROUP sec

[Bug binutils/32238] Performance issues found from binutils version '2.36' version while usage of function 'lang_output_section_statement_lookup'

2025-01-02 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #16 from Matthew Malcomson --- Created attachment 15867 --> https://sourceware.org/bugzilla/attachment.cgi?id=15867&action=edit Cache which linked list was last traversed Option (2) -- caching the head and tail of the linked lis

[Bug binutils/32238] Performance issues found from binutils version '2.36' version while usage of function 'lang_output_section_statement_lookup'

2025-01-02 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 --- Comment #15 from Matthew Malcomson --- Created attachment 15866 --> https://sourceware.org/bugzilla/attachment.cgi?id=15866&action=edit Re-ordering sections in linked list Option (1) -- adding second/third/... sections with same name in

[Bug binutils/32238] Performance issues found from binutils version '2.36' version while usage of function 'lang_output_section_statement_lookup'

2025-01-02 Thread mmalcomson at nvidia dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32238 Matthew Malcomson changed: What|Removed |Added CC||mmalcomson at nvidia dot com