Kernel Larger than 14 MB linker script
Posted: Mon Aug 12, 2019 5:48 pm
Hi,
There is a hold between the guaranteed 14MB if exist and rest of the free memory.
How would one write a linker script so say a kernel larger than 14 MB can be loaded at 1M location as it will be necessary to let linker aware of the hole.
I am no master of linker script. Only way I can think of is to do trail and error and find out where is the approximate cutoff of 14 MB in code. Then setup a section at the cutoff and advance the location counter to accommodate the hole. But this method is tedious. May I ask is there any other way or we should just not load at 1M if kernel is larger than 14 MB?
There is a hold between the guaranteed 14MB if exist and rest of the free memory.
How would one write a linker script so say a kernel larger than 14 MB can be loaded at 1M location as it will be necessary to let linker aware of the hole.
I am no master of linker script. Only way I can think of is to do trail and error and find out where is the approximate cutoff of 14 MB in code. Then setup a section at the cutoff and advance the location counter to accommodate the hole. But this method is tedious. May I ask is there any other way or we should just not load at 1M if kernel is larger than 14 MB?