aboot.lds 568 B

1234567891011121314151617181920212223242526
  1. OUTPUT_FORMAT("elf64-alpha")
  2. ENTRY(__start)
  3. PHDRS { kernel PT_LOAD; }
  4. SECTIONS
  5. {
  6. . = 0x20000000;
  7. .text : { *(.text) } :kernel
  8. _etext = .;
  9. PROVIDE (etext = .);
  10. .rodata : { *(.rodata) } :kernel
  11. .data : { *(.data) } :kernel
  12. .got : { *(.got) } :kernel
  13. .sdata : { *(.sdata) } :kernel
  14. _edata = .;
  15. PROVIDE (edata = .);
  16. .sbss : { *(.sbss) *(.scommon) } :kernel
  17. .bss : { *(.bss) *(COMMON) } :kernel
  18. _end = . ;
  19. PROVIDE (end = .);
  20. /DISCARD/ : { *(.eh_frame) }
  21. .mdebug 0 : { *(.mdebug) }
  22. .note 0 : { *(.note) }
  23. .comment 0 : { *(.comment) }
  24. }