vmlinux-arm26.lds.in 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 and subsequently modified.
  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. *(.init.data)
  29. . = ALIGN(16);
  30. __setup_start = .;
  31. *(.init.setup)
  32. __setup_end = .;
  33. __early_begin = .;
  34. *(__early_param)
  35. __early_end = .;
  36. __initcall_start = .;
  37. *(.initcall1.init)
  38. *(.initcall2.init)
  39. *(.initcall3.init)
  40. *(.initcall4.init)
  41. *(.initcall5.init)
  42. *(.initcall6.init)
  43. *(.initcall7.init)
  44. __initcall_end = .;
  45. __con_initcall_start = .;
  46. *(.con_initcall.init)
  47. __con_initcall_end = .;
  48. . = ALIGN(32);
  49. __initramfs_start = .;
  50. usr/built-in.o(.init.ramfs)
  51. __initramfs_end = .;
  52. . = ALIGN(32768);
  53. __init_end = .;
  54. }
  55. /DISCARD/ : { /* Exit code and data */
  56. *(.exit.text)
  57. *(.exit.data)
  58. *(.exitcall.exit)
  59. }
  60. .text : { /* Real text segment */
  61. _text = .; /* Text and read-only data */
  62. *(.text)
  63. SCHED_TEXT
  64. LOCK_TEXT
  65. *(.fixup)
  66. *(.gnu.warning)
  67. *(.rodata)
  68. *(.rodata.*)
  69. *(.glue_7)
  70. *(.glue_7t)
  71. *(.got) /* Global offset table */
  72. _etext = .; /* End of text section */
  73. }
  74. . = ALIGN(16);
  75. __ex_table : { /* Exception table */
  76. __start___ex_table = .;
  77. *(__ex_table)
  78. __stop___ex_table = .;
  79. }
  80. RODATA
  81. . = ALIGN(8192);
  82. .data : {
  83. /*
  84. * first, the init task union, aligned
  85. * to an 8192 byte boundary. (see arm26/kernel/init_task.c)
  86. */
  87. *(.init.task)
  88. /*
  89. * The cacheline aligned data
  90. */
  91. . = ALIGN(32);
  92. *(.data.cacheline_aligned)
  93. /*
  94. * and the usual data section
  95. */
  96. *(.data)
  97. CONSTRUCTORS
  98. _edata = .;
  99. }
  100. .bss : {
  101. __bss_start = .; /* BSS */
  102. *(.bss)
  103. *(COMMON)
  104. _end = . ;
  105. }
  106. /* Stabs debugging sections. */
  107. .stab 0 : { *(.stab) }
  108. .stabstr 0 : { *(.stabstr) }
  109. .stab.excl 0 : { *(.stab.excl) }
  110. .stab.exclstr 0 : { *(.stab.exclstr) }
  111. .stab.index 0 : { *(.stab.index) }
  112. .stab.indexstr 0 : { *(.stab.indexstr) }
  113. .comment 0 : { *(.comment) }
  114. }