On Wed, Jan 27, 2016 at 9:30 AM, Richard Earnshaw Richard.Earnshaw@arm.com wrote:
Long calls would probably solve the problem, but would likely be horribly expensive in performance.
An allyesconfig is presumably only to verify that you haven't accidentally broken any build config with a patch, so performance should not be a concern.
The best solution would be to have an option to prevent ld -r from merging like-named sections (instead just aggregating multiple sections with similar names into one object file). This is possible in ELF.
Another way to do this is to make an archive file instead of using ld -r, and then use --whole-archive <archivefile> --no-whole-archive. That would avoid the need for linker changes.
While it might be possible to make an ELF file with multiple sections with the same name, that would likely confuse lots of tools, and require cascading changes, which could get ugly.
Jim