您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

efi.lds 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /* -*- sh -*- */
  2. /*
  3. * Linker script for EFI images
  4. *
  5. */
  6. ENTRY ( _start )
  7. SECTIONS {
  8. /* The file starts at a virtual address of zero, and sections are
  9. * contiguous. Each section is aligned to at least _max_align,
  10. * which defaults to 32. Load addresses are equal to virtual
  11. * addresses.
  12. */
  13. _max_align = 32;
  14. /* Allow plenty of space for file headers */
  15. . = 0x1000;
  16. /*
  17. * The text section
  18. *
  19. */
  20. . = ALIGN ( _max_align );
  21. .text : {
  22. _text = .;
  23. *(.text)
  24. *(.text.*)
  25. _etext = .;
  26. }
  27. /*
  28. * The rodata section
  29. *
  30. */
  31. . = ALIGN ( _max_align );
  32. .rodata : {
  33. _rodata = .;
  34. *(.rodata)
  35. *(.rodata.*)
  36. _erodata = .;
  37. }
  38. /*
  39. * The data section
  40. *
  41. */
  42. . = ALIGN ( _max_align );
  43. .data : {
  44. _data = .;
  45. *(.data)
  46. *(.data.*)
  47. *(SORT(.tbl.*)) /* Various tables. See include/tables.h */
  48. _edata = .;
  49. }
  50. /*
  51. * The bss section
  52. *
  53. */
  54. . = ALIGN ( _max_align );
  55. .bss : {
  56. _bss = .;
  57. *(.bss)
  58. *(.bss.*)
  59. *(COMMON)
  60. _ebss = .;
  61. }
  62. /*
  63. * Weak symbols that need zero values if not otherwise defined
  64. *
  65. */
  66. .weak 0x0 : {
  67. _weak = .;
  68. *(.weak)
  69. _eweak = .;
  70. }
  71. _assert = ASSERT ( ( _weak == _eweak ), ".weak is non-zero length" );
  72. /*
  73. * Dispose of the comment and note sections to make the link map
  74. * easier to read
  75. *
  76. */
  77. /DISCARD/ : {
  78. *(.comment)
  79. *(.comment.*)
  80. *(.note)
  81. *(.note.*)
  82. *(.eh_frame)
  83. *(.eh_frame.*)
  84. *(.rel)
  85. *(.rel.*)
  86. *(.discard)
  87. }
  88. }