u-boot.lds 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * (C) Copyright 2001
  3. * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
  4. *
  5. * (C) Copyright 2002
  6. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. */
  26. /*
  27. * u-boot.lds - linker script for U-Boot on the AmigaOneG3SE Board.
  28. */
  29. OUTPUT_ARCH(powerpc)
  30. /* Do we need any of these for elf?
  31. __DYNAMIC = 0; */
  32. SECTIONS
  33. {
  34. /* Read-only sections, merged into text segment: */
  35. . = + SIZEOF_HEADERS;
  36. .interp : { *(.interp) }
  37. .hash : { *(.hash) }
  38. .dynsym : { *(.dynsym) }
  39. .dynstr : { *(.dynstr) }
  40. .rel.text : { *(.rel.text) }
  41. .rela.text : { *(.rela.text) }
  42. .rel.data : { *(.rel.data) }
  43. .rela.data : { *(.rela.data) }
  44. .rel.rodata : { *(.rel.rodata) }
  45. .rela.rodata : { *(.rela.rodata) }
  46. .rel.got : { *(.rel.got) }
  47. .rela.got : { *(.rela.got) }
  48. .rel.ctors : { *(.rel.ctors) }
  49. .rela.ctors : { *(.rela.ctors) }
  50. .rel.dtors : { *(.rel.dtors) }
  51. .rela.dtors : { *(.rela.dtors) }
  52. .rel.bss : { *(.rel.bss) }
  53. .rela.bss : { *(.rela.bss) }
  54. .rel.plt : { *(.rel.plt) }
  55. .rela.plt : { *(.rela.plt) }
  56. .init : { *(.init) }
  57. .plt : { *(.plt) }
  58. .text :
  59. {
  60. cpu/74xx_7xx/start.o (.text)
  61. /* store the environment in a seperate sector in the boot flash */
  62. /* . = env_offset; */
  63. common/environment.o(.text)
  64. *(.text)
  65. *(.fixup)
  66. *(.got1)
  67. }
  68. _etext = .;
  69. PROVIDE (etext = .);
  70. .rodata :
  71. {
  72. *(.rodata)
  73. *(.rodata1)
  74. *(.rodata.str1.4)
  75. *(.eh_frame)
  76. }
  77. .fini : { *(.fini) } =0
  78. .ctors : { *(.ctors) }
  79. .dtors : { *(.dtors) }
  80. /* Read-write section, merged into data segment: */
  81. . = (. + 0x00FF) & 0xFFFFFF00;
  82. _erotext = .;
  83. PROVIDE (erotext = .);
  84. .reloc :
  85. {
  86. *(.got)
  87. _GOT2_TABLE_ = .;
  88. *(.got2)
  89. _FIXUP_TABLE_ = .;
  90. *(.fixup)
  91. }
  92. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  93. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  94. .data :
  95. {
  96. *(.data)
  97. *(.data1)
  98. *(.sdata)
  99. *(.sdata2)
  100. *(.dynamic)
  101. CONSTRUCTORS
  102. }
  103. _edata = .;
  104. PROVIDE (edata = .);
  105. . = .;
  106. __u_boot_cmd_start = .;
  107. .u_boot_cmd : { *(.u_boot_cmd) }
  108. __u_boot_cmd_end = .;
  109. . = .;
  110. __start___ex_table = .;
  111. __ex_table : { *(__ex_table) }
  112. __stop___ex_table = .;
  113. . = ALIGN(256);
  114. __init_begin = .;
  115. .text.init : { *(.text.init) }
  116. .data.init : { *(.data.init) }
  117. . = ALIGN(256);
  118. __init_end = .;
  119. __bss_start = .;
  120. .bss (NOLOAD) :
  121. {
  122. *(.sbss) *(.scommon)
  123. *(.dynbss)
  124. *(.bss)
  125. *(COMMON)
  126. }
  127. _end = ALIGN(4) /*.*/ ;
  128. PROVIDE (end = ALIGN(4) /*.*/);
  129. }