uml.lds.S 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #include <asm-generic/vmlinux.lds.h>
  2. #include <asm/page.h>
  3. OUTPUT_FORMAT(ELF_FORMAT)
  4. OUTPUT_ARCH(ELF_ARCH)
  5. ENTRY(_start)
  6. jiffies = jiffies_64;
  7. SECTIONS
  8. {
  9. /* This must contain the right address - not quite the default ELF one.*/
  10. PROVIDE (__executable_start = START);
  11. /* Static binaries stick stuff here, like the sigreturn trampoline,
  12. * invisibly to objdump. So, just make __binary_start equal to the very
  13. * beginning of the executable, and if there are unmapped pages after this,
  14. * they are forever unusable.
  15. */
  16. __binary_start = START;
  17. . = START + SIZEOF_HEADERS;
  18. _text = .;
  19. _stext = .;
  20. __init_begin = .;
  21. .init.text : {
  22. _sinittext = .;
  23. INIT_TEXT
  24. _einittext = .;
  25. }
  26. . = ALIGN(PAGE_SIZE);
  27. .text :
  28. {
  29. TEXT_TEXT
  30. SCHED_TEXT
  31. LOCK_TEXT
  32. *(.fixup)
  33. /* .gnu.warning sections are handled specially by elf32.em. */
  34. *(.gnu.warning)
  35. *(.gnu.linkonce.t*)
  36. }
  37. . = ALIGN(PAGE_SIZE);
  38. .syscall_stub : {
  39. __syscall_stub_start = .;
  40. *(.__syscall_stub*)
  41. __syscall_stub_end = .;
  42. }
  43. #include "asm/common.lds.S"
  44. init.data : { INIT_DATA }
  45. .data :
  46. {
  47. . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
  48. *(.data.init_task)
  49. . = ALIGN(KERNEL_STACK_SIZE);
  50. *(.data.init_irqstack)
  51. DATA_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(PAGE_SIZE);
  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. }