bootloader.lds 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. OUTPUT_FORMAT("elf64-ia64-little")
  2. OUTPUT_ARCH(ia64)
  3. ENTRY(_start)
  4. SECTIONS
  5. {
  6. /* Read-only sections, merged into text segment: */
  7. . = 0x100000;
  8. _text = .;
  9. .text : { *(__ivt_section) *(.text) }
  10. _etext = .;
  11. /* Global data */
  12. _data = .;
  13. .rodata : { *(.rodata) *(.rodata.*) }
  14. .data : { *(.data) *(.gnu.linkonce.d*) CONSTRUCTORS }
  15. __gp = ALIGN (8) + 0x200000;
  16. .got : { *(.got.plt) *(.got) }
  17. /* We want the small data sections together, so single-instruction offsets
  18. can access them all, and initialized data all before uninitialized, so
  19. we can shorten the on-disk segment size. */
  20. .sdata : { *(.sdata) }
  21. _edata = .;
  22. __bss_start = .;
  23. .sbss : { *(.sbss) *(.scommon) }
  24. .bss : { *(.bss) *(COMMON) }
  25. . = ALIGN(64 / 8);
  26. __bss_stop = .;
  27. _end = . ;
  28. /* Stabs debugging sections. */
  29. .stab 0 : { *(.stab) }
  30. .stabstr 0 : { *(.stabstr) }
  31. .stab.excl 0 : { *(.stab.excl) }
  32. .stab.exclstr 0 : { *(.stab.exclstr) }
  33. .stab.index 0 : { *(.stab.index) }
  34. .stab.indexstr 0 : { *(.stab.indexstr) }
  35. .comment 0 : { *(.comment) }
  36. /* DWARF debug sections.
  37. Symbols in the DWARF debugging sections are relative to the beginning
  38. of the section so we begin them at 0. */
  39. /* DWARF 1 */
  40. .debug 0 : { *(.debug) }
  41. .line 0 : { *(.line) }
  42. /* GNU DWARF 1 extensions */
  43. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  44. .debug_sfnames 0 : { *(.debug_sfnames) }
  45. /* DWARF 1.1 and DWARF 2 */
  46. .debug_aranges 0 : { *(.debug_aranges) }
  47. .debug_pubnames 0 : { *(.debug_pubnames) }
  48. /* DWARF 2 */
  49. .debug_info 0 : { *(.debug_info) }
  50. .debug_abbrev 0 : { *(.debug_abbrev) }
  51. .debug_line 0 : { *(.debug_line) }
  52. .debug_frame 0 : { *(.debug_frame) }
  53. .debug_str 0 : { *(.debug_str) }
  54. .debug_loc 0 : { *(.debug_loc) }
  55. .debug_macinfo 0 : { *(.debug_macinfo) }
  56. /* SGI/MIPS DWARF 2 extensions */
  57. .debug_weaknames 0 : { *(.debug_weaknames) }
  58. .debug_funcnames 0 : { *(.debug_funcnames) }
  59. .debug_typenames 0 : { *(.debug_typenames) }
  60. .debug_varnames 0 : { *(.debug_varnames) }
  61. /* These must appear regardless of . */
  62. }