kernel.ld 407 B

1234567891011121314151617181920
  1. /* VESA real-mode stage at 0x7E00, then kernel_main follows. */
  2. ENTRY(_vesa_stage)
  3. SECTIONS
  4. {
  5. . = 0x7E00;
  6. .text : AT(0x7E00) {
  7. *(.text.stage2)
  8. *(.text .text.*)
  9. }
  10. .rodata : { *(.rodata .rodata.*) }
  11. .data : { *(.data .data.*) }
  12. .bss : {
  13. __bss_start = .;
  14. *(.bss .bss.*) *(COMMON)
  15. __bss_end = .;
  16. }
  17. _end = .;
  18. }
  19. ASSERT(_end <= 0x44000, "Kernel too large would overwrite stack/DMA at 0x44000");