I have found that compiling these files without LTO will put them in proper section. So linking will essentially be of mixed (mostly LTO and a few non-LTO) code. Do you think this is a safe way or will there be any side effects?
Regarding gcc, I get your point, though I would say it should respect the explicit user-defined sections, with or without LTO. I will check with gcc community about this.
I have found that compiling these files without LTO will put them in proper section. So linking will essentially be of mixed (mostly LTO and a few non-LTO) code. Do you think this is a safe way or will there be any side effects?
Regarding gcc, I get your point, though I would say it should respect the explicit user-defined sections, with or without LTO. I will check with gcc community about this.