https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95095
--- Comment #4 from Segher Boessenkool <segher at kernel dot crashing.org> --- On Sat, Jan 16, 2021 at 09:00:56PM +0000, i at maskray dot me wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95095 > > --- Comment #3 from Fangrui Song <i at maskray dot me> --- > (In reply to Segher Boessenkool from comment #2) > > Can't we use ".text%name" for -ffunction-sections, like we did originally, > > in 1996? See cf4403481dd6. This does not conflict with other section > > names, and does not have all the problems you get from doing anything that > > is not a simple prefix. > > A function named 'foo' compiles to '.text%foo'? It might have been better to > avoid conflicts with '.text.startup' '.text.hot' etc but now such a change > would just inconvenience users (think of various Linux kernel linker script > fragments). The conflicts that show up from time to time *also* inconvenience users, and that is an ongoing inconvenience. > .text%name does not address -fno-unique-section-names. And neither does ".text.name.". Something like this is a prerequisite of such an option. Also, please use a different name, one that does not start with "no-"? It isn't about unique names at all anyway, it is about having multiple sections with the same name (that then can get separately GCed, because of new linker features). Segher