uml.lds.S 2.1 KB

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