if I generate a flat binary, I lack debugging symbols. this is making debugging difficult. even if I separately compile an ELF, the symbols don't end up in the same place.
most kernels need to be mapped into the higher half of memory. so, remapping pages is something I already need to do. so, what I'm going to do is go back to my idea of appending an ELF image onto the flat binary, but I'm going to read the ELF properly and map its segments, and I'm going to compile it targeting the higher half of memory.