vmlinux-arm26.lds.in 2.4 KB

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