Why different linker scripts for vmlinux at different locations ?
Hi,
I'm a kernel newbie and started going through the code recently.
I came across two vmlinux.lds linker scripts under
[1] arch/x86/boot/compressed
[2] arch/x86/kernel
There is vmlinux binary present in each of the above directories.
In what way these both are different ?
In one of the linker script the location counter is set as below in the beginning.
. = 0xC0000000 + ((0x1000000 + (0x1000000 - 1)) & ~(0x1000000 - 1))
Is there a specific reason for this calculation to generate starting address as 0xC1000000 ?
Last edited by akhilbaai; 03-16-2017 at 05:37 AM.
|