RFC: ld: Add --text-section-ordering-file (version 2)

Hans-Peter Nilsson hp@bitrange.com
Fri Apr 26 01:46:08 GMT 2024


On Thu, 25 Apr 2024, Nick Clifton wrote:

>   Thoughts, comments, etc ?

Sounds great! ...except:

>     match.  So ".t*t" would match any section starting with ".t" and
>     ending with "t" and would put it into the .text section.  In this
>     version however the output section is selected based upon matching
>     the fixed part at the start of the pattern with the output section.
>     So ".t*t" would only work if the output section was called ".t".

Do you mean '...if the output section was called ".tt"'?  Else, 
having a pattern .t*t matching an instance .t sounds confusing.  

Actually, thats still sounds confusing anyway; I don't 
understand the limitation, sorry for being thick.  If you need 
to keep the code simple or something, maybe just allow a 
trailing "*"?

(I've not paid attention to earlier versions.)

brgds, H-P


More information about the Binutils mailing list