mbr.ld 258 B

123456789101112131415
  1. /* MBR linker script: places code at offset 0 for raw binary output. */
  2. ENTRY(_start)
  3. SECTIONS
  4. {
  5. . = 0x0;
  6. .boot : AT(0x0) {
  7. *(.text)
  8. *(.rodata .rodata.*)
  9. . = 0x1FE;
  10. *(.bootsig)
  11. . = 0x200;
  12. }
  13. /DISCARD/ : { *(.eh_frame) *(.note*) *(.comment) }
  14. }