vmlinux-arm26-xip.lds.in 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* ld script to make ARM Linux kernel
  2. * taken from the i386 version by Russell King
  3. * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
  4. * borrowed from Russels ARM port by Ian Molton
  5. */
  6. #include <asm-generic/vmlinux.lds.h>
  7. OUTPUT_ARCH(arm)
  8. ENTRY(stext)
  9. jiffies = jiffies_64;
  10. SECTIONS
  11. {
  12. . = TEXTADDR;
  13. .init : { /* Init code and data */
  14. _stext = .;
  15. __init_begin = .;
  16. _sinittext = .;
  17. *(.init.text)
  18. _einittext = .;
  19. __proc_info_begin = .;
  20. *(.proc.info)
  21. __proc_info_end = .;
  22. __arch_info_begin = .;
  23. *(.arch.info)
  24. __arch_info_end = .;
  25. __tagtable_begin = .;
  26. *(.taglist)
  27. __tagtable_end = .;
  28. . = ALIGN(16);
  29. __setup_start = .;
  30. *(.init.setup)
  31. __setup_end = .;
  32. __early_begin = .;
  33. *(__early_param)
  34. __early_end = .;
  35. __initcall_start = .;
  36. *(.initcall1.init)
  37. *(.initcall2.init)
  38. *(.initcall3.init)
  39. *(.initcall4.init)
  40. *(.initcall5.init)
  41. *(.initcall6.init)
  42. *(.initcall7.init)
  43. __initcall_end = .;
  44. __con_initcall_start = .;
  45. *(.con_initcall.init)
  46. __con_initcall_end = .;
  47. . = ALIGN(32);
  48. __initramfs_start = .;
  49. usr/built-in.o(.init.ramfs)
  50. __initramfs_end = .;
  51. . = ALIGN(32768);
  52. __init_end = .;
  53. }
  54. /DISCARD/ : { /* Exit code and data */
  55. *(.exit.text)
  56. *(.exit.data)
  57. *(.exitcall.exit)
  58. }
  59. .text : { /* Real text segment */
  60. _text = .; /* Text and read-only data */
  61. *(.text)
  62. SCHED_TEXT
  63. LOCK_TEXT /* FIXME - borrowed from arm32 - check*/
  64. *(.fixup)
  65. *(.gnu.warning)
  66. *(.rodata)
  67. *(.rodata.*)
  68. *(.glue_7)
  69. *(.glue_7t)
  70. *(.got) /* Global offset table */
  71. _etext = .; /* End of text section */
  72. }
  73. . = ALIGN(16);
  74. __ex_table : { /* Exception table */
  75. __start___ex_table = .;
  76. *(__ex_table)
  77. __stop___ex_table = .;
  78. }
  79. RODATA
  80. _endtext = .;
  81. . = DATAADDR;
  82. _sdata = .;
  83. .data : {
  84. . = ALIGN(8192);
  85. /*
  86. * first, the init thread union, aligned
  87. * to an 8192 byte boundary. (see arm26/kernel/init_task.c)
  88. * FIXME - sould this be 32K aligned on arm26?
  89. */
  90. *(.init.task)
  91. /*
  92. * The cacheline aligned data
  93. */
  94. . = ALIGN(32);
  95. *(.data.cacheline_aligned)
  96. /*
  97. * and the usual data section
  98. */
  99. *(.data)
  100. CONSTRUCTORS
  101. *(.init.data)
  102. _edata = .;
  103. }
  104. .bss : {
  105. __bss_start = .; /* BSS */
  106. *(.bss)
  107. *(COMMON)
  108. _end = . ;
  109. }
  110. /* Stabs debugging sections. */
  111. .stab 0 : { *(.stab) }
  112. .stabstr 0 : { *(.stabstr) }
  113. .stab.excl 0 : { *(.stab.excl) }
  114. .stab.exclstr 0 : { *(.stab.exclstr) }
  115. .stab.index 0 : { *(.stab.index) }
  116. .stab.indexstr 0 : { *(.stab.indexstr) }
  117. .comment 0 : { *(.comment) }
  118. }