PageRenderTime 62ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/board/bf561-ezkit/u-boot.lds.S

https://github.com/neuros/u-boot
Assembly | 153 lines | 141 code | 12 blank | 0 comment | 3 complexity | b687707c1b9f0974baef12ee7774ac19 MD5 | raw file
Possible License(s): AGPL-1.0
  1. /*
  2. * U-boot - u-boot.lds.S
  3. *
  4. * Copyright (c) 2005-2007 Analog Device Inc.
  5. *
  6. * (C) Copyright 2000-2004
  7. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  8. *
  9. * See file CREDITS for list of people who contributed to this
  10. * project.
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as
  14. * published by the Free Software Foundation; either version 2 of
  15. * the License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  25. * MA 02111-1307 USA
  26. */
  27. #include <config.h>
  28. OUTPUT_ARCH(bfin)
  29. OUTPUT_ARCH(bfin)
  30. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib);
  31. /* Do we need any of these for elf?
  32. __DYNAMIC = 0; */
  33. SECTIONS
  34. {
  35. /* Read-only sections, merged into text segment: */
  36. . = + SIZEOF_HEADERS;
  37. .interp : { *(.interp) }
  38. .hash : { *(.hash) }
  39. .dynsym : { *(.dynsym) }
  40. .dynstr : { *(.dynstr) }
  41. .rel.text : { *(.rel.text) }
  42. .rela.text : { *(.rela.text) }
  43. .rel.data : { *(.rel.data) }
  44. .rela.data : { *(.rela.data) }
  45. .rel.rodata : { *(.rel.rodata) }
  46. .rela.rodata : { *(.rela.rodata) }
  47. .rel.got : { *(.rel.got) }
  48. .rela.got : { *(.rela.got) }
  49. .rel.ctors : { *(.rel.ctors) }
  50. .rela.ctors : { *(.rela.ctors) }
  51. .rel.dtors : { *(.rel.dtors) }
  52. .rela.dtors : { *(.rela.dtors) }
  53. .rel.bss : { *(.rel.bss) }
  54. .rela.bss : { *(.rela.bss) }
  55. .rel.plt : { *(.rel.plt) }
  56. .rela.plt : { *(.rela.plt) }
  57. .init : { *(.init) }
  58. .plt : { *(.plt) }
  59. . = CFG_MONITOR_BASE;
  60. .text :
  61. {
  62. /* WARNING - the following is hand-optimized to fit within */
  63. /* the sector before the environment sector. If it throws */
  64. /* an error during compilation remove an object here to get */
  65. /* it linked after the configuration sector. */
  66. cpu/bf561/start.o (.text)
  67. cpu/bf561/start1.o (.text)
  68. cpu/bf561/traps.o (.text)
  69. cpu/bf561/interrupt.o (.text)
  70. cpu/bf561/serial.o (.text)
  71. common/dlmalloc.o (.text)
  72. /* lib_blackfin/bf533_string.o (.text) */
  73. /* lib_generic/vsprintf.o (.text) */
  74. lib_generic/crc32.o (.text)
  75. lib_generic/zlib.o (.text)
  76. board/bf561-ezkit/bf561-ezkit.o (.text)
  77. . = DEFINED(env_offset) ? env_offset : .;
  78. common/environment.o (.text)
  79. *(.text)
  80. *(.fixup)
  81. *(.got1)
  82. }
  83. _etext = .;
  84. PROVIDE (etext = .);
  85. .rodata :
  86. {
  87. *(.rodata)
  88. *(.rodata1)
  89. *(.rodata.str1.4)
  90. }
  91. .fini : { *(.fini) } =0
  92. .ctors : { *(.ctors) }
  93. .dtors : { *(.dtors) }
  94. /* Read-write section, merged into data segment: */
  95. . = (. + 0x00FF) & 0xFFFFFF00;
  96. _erotext = .;
  97. PROVIDE (erotext = .);
  98. .reloc :
  99. {
  100. *(.got)
  101. _GOT2_TABLE_ = .;
  102. *(.got2)
  103. _FIXUP_TABLE_ = .;
  104. *(.fixup)
  105. }
  106. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  107. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  108. .data :
  109. {
  110. *(.data)
  111. *(.data1)
  112. *(.sdata)
  113. *(.sdata2)
  114. *(.dynamic)
  115. CONSTRUCTORS
  116. }
  117. _edata = .;
  118. PROVIDE (edata = .);
  119. ___u_boot_cmd_start = .;
  120. .u_boot_cmd : { *(.u_boot_cmd) }
  121. ___u_boot_cmd_end = .;
  122. __start___ex_table = .;
  123. __ex_table : { *(__ex_table) }
  124. __stop___ex_table = .;
  125. . = ALIGN(256);
  126. __init_begin = .;
  127. .text.init : { *(.text.init) }
  128. .data.init : { *(.data.init) }
  129. . = ALIGN(256);
  130. __init_end = .;
  131. __bss_start = .;
  132. .bss :
  133. {
  134. *(.sbss) *(.scommon)
  135. *(.dynbss)
  136. *(.bss)
  137. *(COMMON)
  138. }
  139. _end = . ;
  140. PROVIDE (end = .);
  141. }