uml.lds.S 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. . = START + SIZEOF_HEADERS;
  11. /* Used in arch/um/kernel/mem.c. Any memory between START and __binary_start
  12. * is remapped.*/
  13. __binary_start = .;
  14. #ifdef MODE_TT
  15. .remap_data : { arch/um/sys-SUBARCH/unmap_fin.o (.data .bss) }
  16. .remap : { arch/um/sys-SUBARCH/unmap_fin.o (.text) }
  17. . = ALIGN(4096); /* Init code and data */
  18. #endif
  19. _stext = .;
  20. __init_begin = .;
  21. .init.text : {
  22. _sinittext = .;
  23. *(.init.text)
  24. _einittext = .;
  25. }
  26. . = ALIGN(4096);
  27. .text :
  28. {
  29. *(.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. #include "asm/common.lds.S"
  38. init.data : { *(init.data) }
  39. .data :
  40. {
  41. . = ALIGN(KERNEL_STACK_SIZE); /* init_task */
  42. *(.data.init_task)
  43. *(.data)
  44. *(.gnu.linkonce.d*)
  45. CONSTRUCTORS
  46. }
  47. .data1 : { *(.data1) }
  48. .ctors :
  49. {
  50. *(.ctors)
  51. }
  52. .dtors :
  53. {
  54. *(.dtors)
  55. }
  56. .got : { *(.got.plt) *(.got) }
  57. .dynamic : { *(.dynamic) }
  58. .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  59. .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  60. /* We want the small data sections together, so single-instruction offsets
  61. can access them all, and initialized data all before uninitialized, so
  62. we can shorten the on-disk segment size. */
  63. .sdata : { *(.sdata) }
  64. _edata = .;
  65. PROVIDE (edata = .);
  66. . = ALIGN(0x1000);
  67. .sbss :
  68. {
  69. __bss_start = .;
  70. PROVIDE(_bss_start = .);
  71. *(.sbss)
  72. *(.scommon)
  73. }
  74. .bss :
  75. {
  76. *(.dynbss)
  77. *(.bss)
  78. *(COMMON)
  79. }
  80. _end = . ;
  81. PROVIDE (end = .);
  82. /* Stabs debugging sections. */
  83. .stab 0 : { *(.stab) }
  84. .stabstr 0 : { *(.stabstr) }
  85. .stab.excl 0 : { *(.stab.excl) }
  86. .stab.exclstr 0 : { *(.stab.exclstr) }
  87. .stab.index 0 : { *(.stab.index) }
  88. .stab.indexstr 0 : { *(.stab.indexstr) }
  89. .comment 0 : { *(.comment) }
  90. }