X86-64: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m →Text Segment Types: typo fix: nothing -> noting |
|||
Line 190:
| The kernel runs in the negative 2 GB of the address space. This model has to be used for Linux kernel code.
|}
It worth
From experience, you should not use "-mcmodel=kernel". That is a hack for the Linux kernel on x86_64. It is not available for other architectures, and you should not rely on a hack that was written for a kernel with non-stable API. It might change any time. It is better if you use a proper linker script instead to place your kernel into the negative address range.
|