u-boot.lds 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * (C) Copyright 2007 DENX Software Engineering.
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. OUTPUT_ARCH(powerpc)
  23. SECTIONS
  24. {
  25. /* Read-only sections, merged into text segment: */
  26. . = + SIZEOF_HEADERS;
  27. .interp : { *(.interp) }
  28. .hash : { *(.hash) }
  29. .dynsym : { *(.dynsym) }
  30. .dynstr : { *(.dynstr) }
  31. .rel.text : { *(.rel.text) }
  32. .rela.text : { *(.rela.text) }
  33. .rel.data : { *(.rel.data) }
  34. .rela.data : { *(.rela.data) }
  35. .rel.rodata : { *(.rel.rodata) }
  36. .rela.rodata : { *(.rela.rodata) }
  37. .rel.got : { *(.rel.got) }
  38. .rela.got : { *(.rela.got) }
  39. .rel.ctors : { *(.rel.ctors) }
  40. .rela.ctors : { *(.rela.ctors) }
  41. .rel.dtors : { *(.rel.dtors) }
  42. .rela.dtors : { *(.rela.dtors) }
  43. .rel.bss : { *(.rel.bss) }
  44. .rela.bss : { *(.rela.bss) }
  45. .rel.plt : { *(.rel.plt) }
  46. .rela.plt : { *(.rela.plt) }
  47. .init : { *(.init) }
  48. .plt : { *(.plt) }
  49. .text :
  50. {
  51. arch/powerpc/cpu/mpc512x/start.o (.text)
  52. *(.text)
  53. *(.got1)
  54. . = ALIGN(16);
  55. *(.eh_frame)
  56. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  57. }
  58. .fini : { *(.fini) } =0
  59. .ctors : { *(.ctors) }
  60. .dtors : { *(.dtors) }
  61. /* Read-write section, merged into data segment: */
  62. . = (. + 0x0FFF) & 0xFFFFF000;
  63. _erotext = .;
  64. PROVIDE (erotext = .);
  65. .reloc :
  66. {
  67. *(.got)
  68. _GOT2_TABLE_ = .;
  69. *(.got2)
  70. _FIXUP_TABLE_ = .;
  71. *(.fixup)
  72. }
  73. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
  74. __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
  75. .data :
  76. {
  77. *(.data)
  78. *(.data1)
  79. *(.sdata)
  80. *(.sdata2)
  81. *(.dynamic)
  82. CONSTRUCTORS
  83. }
  84. _edata = .;
  85. PROVIDE (edata = .);
  86. . = .;
  87. __u_boot_cmd_start = .;
  88. .u_boot_cmd : { *(.u_boot_cmd) }
  89. __u_boot_cmd_end = .;
  90. . = .;
  91. __start___ex_table = .;
  92. __ex_table : { *(__ex_table) }
  93. __stop___ex_table = .;
  94. . = ALIGN(4096);
  95. __init_begin = .;
  96. .text.init : { *(.text.init) }
  97. .data.init : { *(.data.init) }
  98. . = ALIGN(4096);
  99. __init_end = .;
  100. __bss_start = .;
  101. .bss (NOLOAD) :
  102. {
  103. *(.sbss) *(.scommon)
  104. *(.dynbss)
  105. *(.bss)
  106. *(COMMON)
  107. . = ALIGN(4);
  108. }
  109. _end = . ;
  110. PROVIDE (end = .);
  111. }
  112. ENTRY(_start)