On 09.06.2021 15:18, Daniel Kiper wrote: > On Wed, May 19, 2021 at 04:35:00PM +0200, Jan Beulich wrote: >> On 19.05.2021 14:48, Daniel Kiper wrote: >>> On Wed, May 19, 2021 at 11:29:43AM +0200, Jan Beulich wrote: >>>> Also not sure what to do with Dwarf debug info, which just recently >>>> we managed to avoid needing to strip unconditionally. >>> >>> I think debug info may stay as is. Just Multiboot2 header should not >>> cover it if it is not needed. >> >> You did say that .bss is expected to be last, which both .reloc and >> debug info violate. > > The .bss section has to be last one in memory from Multiboot2 protocol > point of view. However, nothing, AFAICT, forbids to have something > behind in the file. Of course if you ignore the data at the end of file > when you load the image using Multiboot2 protocol.
Well, debug info can be ignored. If MB2 would work like it does today, then .reloc also would never be touched. Feels a little fragile, but might be okay then. Jan
