Hey, recently I had asked a question for how to quickly load a kernel binary into memory and gotten the answer to try using static variables and a linker script. Now that I have, however, I keep getting issues when trying to sign the ELF file.
Based on what I'm googling and the fixes I'm trying, it seems to be some kind of alignment error. Is there a quick way to debug alignment of data, or a general guideline document for this? Or is this task-specific?
Thanks!
Thanks for the response. I should clarify - I meant is there a clear difference between how alignment works for copy_nonoverlapping and the static + linker? I tried to copy a linux kernel to address 0x9800_0000 on both but the first approach can read the kernel is there, but the second one cannot.
I am assuming this is all alignment problems again, but that's my best guess. Is there a clear way to find out?
Sorry, I don't know anything about alignment and the linker.