uml.lds.S 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #include <asm-generic/vmlinux.lds.h>
  2. OUTPUT_FORMAT(ELF_FORMAT)
  3. OUTPUT_ARCH(ELF_ARCH)
  4. ENTRY(_start)
  5. jiffies = jiffies_64;
  6. SECTIONS
  7. {
  8. /* This must contain the right address - not quite the default ELF one.*/
  9. PROVIDE (__executable_start = START);
  10. /* Static binaries stick stuff here, like the sigreturn trampoline,
  11. * invisibly to objdump. So, just make __binary_start equal to the very
  12. * beginning of the executable, and if there are unmapped pages after this,
  13. * they are forever unusable.
  14. */
  15. __binary_start = START;
  16. . = START + SIZEOF_HEADERS;
  17. #ifdef MODE_TT
  18. .remap_data : { UNMAP_PATH (.data .bss) }
  19. .remap : { UNMAP_PATH (.text) }
  20. . = ALIGN(4096); /* Init code and data */
  21. #endif
  22. _text = .;
  23. _stext = .;
  24. __init_begin = .;
  25. .init.text : {
  26. _sinittext = .;
  27. *(.init.text)
  28. _einittext = .;
  29. }
  30. . = ALIGN(4096);
  31. .text :
  32. {
  33. TEXT_TEXT
  34. SCHED_TEXT
  35. LOCK_TEXT
  36. *(.fixup)
  37. /* .gnu.warning sections are handled specially by elf32.em. */
  38. *(.gnu.warning)
  39. *(.gnu.linkonce.t*)
  40. }
  41. . = ALIGN(4096);
  42. .syscall_stub : {
  43. __syscall_stub_start = .;
  44. *(.__syscall_stub*)
  45. __syscall_stub_end = .;
  46. }
  47. #include "asm/common.lds.S"
  48. init.data : { *(init.data) }
  49. .data :
  50. {
  51. . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
  52. *(.data.init_task)
  53. . = ALIGN(KERNEL_STACK_SIZE);
  54. *(.data.init_irqstack)
  55. DATA_DATA
  56. *(.gnu.linkonce.d*)
  57. CONSTRUCTORS
  58. }
  59. .data1 : { *(.data1) }
  60. .ctors :
  61. {
  62. *(.ctors)
  63. }
  64. .dtors :
  65. {
  66. *(.dtors)
  67. }
  68. .got : { *(.got.plt) *(.got) }
  69. .dynamic : { *(.dynamic) }
  70. .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  71. .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  72. /* We want the small data sections together, so single-instruction offsets
  73. can access them all, and initialized data all before uninitialized, so
  74. we can shorten the on-disk segment size. */
  75. .sdata : { *(.sdata) }
  76. _edata = .;
  77. PROVIDE (edata = .);
  78. . = ALIGN(0x1000);
  79. .sbss :
  80. {
  81. __bss_start = .;
  82. PROVIDE(_bss_start = .);
  83. *(.sbss)
  84. *(.scommon)
  85. }
  86. .bss :
  87. {
  88. *(.dynbss)
  89. *(.bss)
  90. *(COMMON)
  91. }
  92. _end = .;
  93. PROVIDE (end = .);
  94. STABS_DEBUG
  95. DWARF_DEBUG
  96. }