vmlinux.lds.S 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /*
  2. * File: arch/blackfin/kernel/vmlinux.lds.S
  3. * Based on: none - original work
  4. * Author:
  5. *
  6. * Created: Tue Sep 21 2004
  7. * Description: Master linker script for blackfin architecture
  8. *
  9. * Modified:
  10. * Copyright 2004-2007 Analog Devices Inc.
  11. *
  12. * Bugs: Enter bugs at http://blackfin.uclinux.org/
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation; either version 2 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, see the file COPYING, or write
  26. * to the Free Software Foundation, Inc.,
  27. * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  28. */
  29. #define VMLINUX_SYMBOL(_sym_) _##_sym_
  30. #include <asm-generic/vmlinux.lds.h>
  31. #include <asm/mem_map.h>
  32. OUTPUT_FORMAT("elf32-bfin")
  33. ENTRY(__start)
  34. _jiffies = _jiffies_64;
  35. SECTIONS
  36. {
  37. . = CONFIG_BOOT_LOAD;
  38. .text :
  39. {
  40. __text = .;
  41. _text = .;
  42. __stext = .;
  43. TEXT_TEXT
  44. SCHED_TEXT
  45. LOCK_TEXT
  46. *(.text.lock)
  47. *(.fixup)
  48. . = ALIGN(16);
  49. ___start___ex_table = .;
  50. *(__ex_table)
  51. ___stop___ex_table = .;
  52. . = ALIGN(4);
  53. __etext = .;
  54. }
  55. RODATA
  56. .data :
  57. {
  58. __sdata = .;
  59. . = ALIGN(0x2000);
  60. *(.data.init_task)
  61. DATA_DATA
  62. CONSTRUCTORS
  63. . = ALIGN(32);
  64. *(.data.cacheline_aligned)
  65. . = ALIGN(0x2000);
  66. __edata = .;
  67. }
  68. ___init_begin = .;
  69. .init :
  70. {
  71. . = ALIGN(4096);
  72. __sinittext = .;
  73. *(.init.text)
  74. __einittext = .;
  75. *(.init.data)
  76. . = ALIGN(16);
  77. ___setup_start = .;
  78. *(.init.setup)
  79. ___setup_end = .;
  80. ___start___param = .;
  81. *(__param)
  82. ___stop___param = .;
  83. ___initcall_start = .;
  84. INITCALLS
  85. ___initcall_end = .;
  86. ___con_initcall_start = .;
  87. *(.con_initcall.init)
  88. ___con_initcall_end = .;
  89. ___security_initcall_start = .;
  90. *(.security_initcall.init)
  91. ___security_initcall_end = .;
  92. . = ALIGN(4);
  93. ___initramfs_start = .;
  94. *(.init.ramfs)
  95. ___initramfs_end = .;
  96. . = ALIGN(4);
  97. }
  98. __l1_lma_start = .;
  99. .text_l1 L1_CODE_START : AT(LOADADDR(.init) + SIZEOF(.init))
  100. {
  101. . = ALIGN(4);
  102. __stext_l1 = .;
  103. *(.l1.text)
  104. . = ALIGN(4);
  105. __etext_l1 = .;
  106. }
  107. .data_l1 L1_DATA_A_START : AT(LOADADDR(.text_l1) + SIZEOF(.text_l1))
  108. {
  109. . = ALIGN(4);
  110. __sdata_l1 = .;
  111. *(.l1.data)
  112. __edata_l1 = .;
  113. . = ALIGN(4);
  114. __sbss_l1 = .;
  115. *(.l1.bss)
  116. . = ALIGN(32);
  117. *(.data_l1.cacheline_aligned)
  118. . = ALIGN(4);
  119. __ebss_l1 = .;
  120. }
  121. .data_b_l1 L1_DATA_B_START : AT(LOADADDR(.data_l1) + SIZEOF(.data_l1))
  122. {
  123. . = ALIGN(4);
  124. __sdata_b_l1 = .;
  125. *(.l1.data.B)
  126. __edata_b_l1 = .;
  127. . = ALIGN(4);
  128. __sbss_b_l1 = .;
  129. *(.l1.bss.B)
  130. . = ALIGN(4);
  131. __ebss_b_l1 = .;
  132. }
  133. ___init_end = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
  134. .bss LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1) :
  135. {
  136. . = ALIGN(4);
  137. ___bss_start = .;
  138. *(.bss)
  139. *(COMMON)
  140. . = ALIGN(4);
  141. ___bss_stop = .;
  142. __end = .;
  143. }
  144. /DISCARD/ :
  145. {
  146. *(.exit.text)
  147. *(.exit.data)
  148. *(.exitcall.exit)
  149. }
  150. }