uml.lds.S 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. _stext = .;
  23. __init_begin = .;
  24. .init.text : {
  25. _sinittext = .;
  26. *(.init.text)
  27. _einittext = .;
  28. }
  29. . = ALIGN(4096);
  30. .text :
  31. {
  32. *(.text)
  33. SCHED_TEXT
  34. LOCK_TEXT
  35. *(.fixup)
  36. /* .gnu.warning sections are handled specially by elf32.em. */
  37. *(.gnu.warning)
  38. *(.gnu.linkonce.t*)
  39. . = ALIGN(4096);
  40. __syscall_stub_start = .;
  41. *(.__syscall_stub*)
  42. __syscall_stub_end = .;
  43. . = ALIGN(4096);
  44. }
  45. #include "asm/common.lds.S"
  46. init.data : { *(init.data) }
  47. .data :
  48. {
  49. . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
  50. *(.data.init_task)
  51. *(.data)
  52. *(.gnu.linkonce.d*)
  53. CONSTRUCTORS
  54. }
  55. .data1 : { *(.data1) }
  56. .ctors :
  57. {
  58. *(.ctors)
  59. }
  60. .dtors :
  61. {
  62. *(.dtors)
  63. }
  64. .got : { *(.got.plt) *(.got) }
  65. .dynamic : { *(.dynamic) }
  66. .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  67. .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  68. /* We want the small data sections together, so single-instruction offsets
  69. can access them all, and initialized data all before uninitialized, so
  70. we can shorten the on-disk segment size. */
  71. .sdata : { *(.sdata) }
  72. _edata = .;
  73. PROVIDE (edata = .);
  74. . = ALIGN(0x1000);
  75. .sbss :
  76. {
  77. __bss_start = .;
  78. PROVIDE(_bss_start = .);
  79. *(.sbss)
  80. *(.scommon)
  81. }
  82. .bss :
  83. {
  84. *(.dynbss)
  85. *(.bss)
  86. *(COMMON)
  87. }
  88. _end = .;
  89. PROVIDE (end = .);
  90. STABS_DEBUG
  91. DWARF_DEBUG
  92. }