uml.lds.S 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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)
  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. . = ALIGN(4096);
  41. __syscall_stub_start = .;
  42. *(.__syscall_stub*)
  43. __syscall_stub_end = .;
  44. . = ALIGN(4096);
  45. }
  46. #include "asm/common.lds.S"
  47. init.data : { *(init.data) }
  48. .data :
  49. {
  50. . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
  51. *(.data.init_task)
  52. *(.data)
  53. *(.gnu.linkonce.d*)
  54. CONSTRUCTORS
  55. }
  56. .data1 : { *(.data1) }
  57. .ctors :
  58. {
  59. *(.ctors)
  60. }
  61. .dtors :
  62. {
  63. *(.dtors)
  64. }
  65. .got : { *(.got.plt) *(.got) }
  66. .dynamic : { *(.dynamic) }
  67. .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  68. .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  69. /* We want the small data sections together, so single-instruction offsets
  70. can access them all, and initialized data all before uninitialized, so
  71. we can shorten the on-disk segment size. */
  72. .sdata : { *(.sdata) }
  73. _edata = .;
  74. PROVIDE (edata = .);
  75. . = ALIGN(0x1000);
  76. .sbss :
  77. {
  78. __bss_start = .;
  79. PROVIDE(_bss_start = .);
  80. *(.sbss)
  81. *(.scommon)
  82. }
  83. .bss :
  84. {
  85. *(.dynbss)
  86. *(.bss)
  87. *(COMMON)
  88. }
  89. _end = .;
  90. PROVIDE (end = .);
  91. STABS_DEBUG
  92. DWARF_DEBUG
  93. }