https://sourceware.org/bugzilla/show_bug.cgi?id=26907
--- Comment #9 from Alan Modra <amodra at gmail dot com> --- Yes, if you play games with lma and vma you can easily create layouts that _bfd_elf_map_sections_to_segments won't handle very well. A section that has a different lma to vma relationship to the previous section can't be put in the same load segment. That can easily lead to empty load segments, and indeed must if a section is empty but your script said it should be kept and its lma to vma relation doesn't match any non-empty section. (LMA is not specified in ELF section headers, only in load headers.) I'm not interested in trying to make every weird user script produce the minimum number of load headers, or even to work with objcopy. -- You are receiving this mail because: You are on the CC list for the bug.