This is the mail archive of the
mailing list for the binutils project.
Re: RFC: Support link with mixed IR/non-IR objects
- -ffunction-sections code may be reorganized, losing cache locality.
eg. two different files each with a static "setup" function will
have those functions placed together in the same section.
Kernel doesn't use this.
Obsolete with LTO
- Combining sections prevents --gc-sections from working as well as it
- On targets like powerpc64, ld -r may cause overflow of the .toc
section in the resulting relocatable object file. If the files were
left separate, the final ld could cope by generating multiple .toc
Is that a real problem for the kernel?
As far as I can tell the only real problem is the LTO issue and HJ solved
Your arguments are not persuasive, especially given the complexity of
If HJs patchkit is not merged I just have to advise people to use his
for LTO kernel builds instead. That would be unfortunate.