bootstrap.ld 592 B

1234567891011121314151617
  1. /* Bootstrap installer: pinned at the OLD build's PROGRAM_LOAD_ADDR (0x4A000).
  2. *
  3. * bootstrap.bin is received by a still-running *old* kernel whose `serial recv`
  4. * writes to its own fixed program address (0x4A000, pre-Stage-A builds), so it
  5. * must be linked there to run. New builds never need it: the serial/net kexec
  6. * auto-detect reloads them. See bootstrap.c and the AGENTS.md bootstrap flow. */
  7. ENTRY(_start)
  8. SECTIONS
  9. {
  10. . = 0x4A000;
  11. .text : { *(.text .text.*) }
  12. .rodata : { *(.rodata .rodata.*) }
  13. .data : { *(.data .data.*) }
  14. .bss : { *(.bss .bss.*) *(COMMON) }
  15. _end = .;
  16. }