vmlinux-arm26-xip.lds.in 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. #ifdef CONFIG_BLK_DEV_INITRD
  48. . = ALIGN(32);
  49. __initramfs_start = .;
  50. usr/built-in.o(.init.ramfs)
  51. __initramfs_end = .;
  52. #endif
  53. . = ALIGN(32768);
  54. __init_end = .;
  55. }
  56. /DISCARD/ : { /* Exit code and data */
  57. *(.exit.text)
  58. *(.exit.data)
  59. *(.exitcall.exit)
  60. }
  61. .text : { /* Real text segment */
  62. _text = .; /* Text and read-only data */
  63. *(.text)
  64. SCHED_TEXT
  65. LOCK_TEXT /* FIXME - borrowed from arm32 - check*/
  66. *(.fixup)
  67. *(.gnu.warning)
  68. *(.rodata)
  69. *(.rodata.*)
  70. *(.glue_7)
  71. *(.glue_7t)
  72. *(.got) /* Global offset table */
  73. _etext = .; /* End of text section */
  74. }
  75. . = ALIGN(16);
  76. __ex_table : { /* Exception table */
  77. __start___ex_table = .;
  78. *(__ex_table)
  79. __stop___ex_table = .;
  80. }
  81. RODATA
  82. _endtext = .;
  83. . = DATAADDR;
  84. _sdata = .;
  85. .data : {
  86. . = ALIGN(8192);
  87. /*
  88. * first, the init thread union, aligned
  89. * to an 8192 byte boundary. (see arm26/kernel/init_task.c)
  90. * FIXME - sould this be 32K aligned on arm26?
  91. */
  92. *(.init.task)
  93. /*
  94. * The cacheline aligned data
  95. */
  96. . = ALIGN(32);
  97. *(.data.cacheline_aligned)
  98. /*
  99. * and the usual data section
  100. */
  101. *(.data)
  102. CONSTRUCTORS
  103. *(.init.data)
  104. _edata = .;
  105. }
  106. .bss : {
  107. __bss_start = .; /* BSS */
  108. *(.bss)
  109. *(COMMON)
  110. _end = . ;
  111. }
  112. /* Stabs debugging sections. */
  113. .stab 0 : { *(.stab) }
  114. .stabstr 0 : { *(.stabstr) }
  115. .stab.excl 0 : { *(.stab.excl) }
  116. .stab.exclstr 0 : { *(.stab.exclstr) }
  117. .stab.index 0 : { *(.stab.index) }
  118. .stab.indexstr 0 : { *(.stab.indexstr) }
  119. .comment 0 : { *(.comment) }
  120. }