u-boot.lds.ram 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * (C) Copyright 2000
  3. * Rob Taylor, Flying Pig Systems Ltd. robt@flyingpig.com
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. OUTPUT_ARCH(powerpc)
  24. MEMORY {
  25. ram (!rx) : org = 0x00000000 , LENGTH = 8M
  26. code (!rx) : org = 0x00002000 , LENGTH = (4M - 0x2000)
  27. rom (rx) : org = 0xfff00000 , LENGTH = 512K
  28. }
  29. SECTIONS
  30. {
  31. _f_init = .;
  32. PROVIDE(_f_init = .);
  33. _f_init_rom = .;
  34. PROVIDE(_f_init_rom = .);
  35. .init : {
  36. cpu/mpc824x/start.o (.text)
  37. *(.init)
  38. } > ram
  39. _init_size = SIZEOF(.init);
  40. PROVIDE(_init_size = SIZEOF(.init));
  41. ENTRY(_start)
  42. /* _ftext = .;
  43. _ftext_rom = .;
  44. _text_size = SIZEOF(.text);
  45. */
  46. .text : {
  47. *(.text)
  48. *(.got1)
  49. } > ram
  50. .rodata : { *(.rodata) } > ram
  51. .dtors : { *(.dtors) } > ram
  52. .data : { *(.data) } > ram
  53. .sdata : { *(.sdata) } > ram
  54. .sdata2 : { *(.sdata2)
  55. *(.got)
  56. _GOT2_TABLE_ = .;
  57. *(.got2)
  58. _FIXUP_TABLE_ = .;
  59. *(.fixup)
  60. } > ram
  61. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  62. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  63. .sbss : { *(.sbss) } > ram
  64. .sbss2 : { *(.sbss2) } > ram
  65. .bss : { *(.bss) } > ram
  66. .debug : { *(.debug) } > ram
  67. .line : { *(.line) } > ram
  68. .symtab : { *(.symtab) } > ram
  69. .shrstrtab : { *(.shstrtab) } > ram
  70. .strtab : { *(.strtab) } > ram
  71. /* .reloc :
  72. {
  73. *(.got)
  74. _GOT2_TABLE_ = .;
  75. *(.got2)
  76. _FIXUP_TABLE_ = .;
  77. *(.fixup)
  78. } > ram
  79. */
  80. __u_boot_cmd_start = .;
  81. .u_boot_cmd : { *(.u_boot_cmd) }
  82. __u_boot_cmd_end = .;
  83. __start___ex_table = .;
  84. __ex_table : { *(__ex_table) } > ram
  85. __stop___ex_table = .;
  86. .ppcenv :
  87. {
  88. common/env_embedded.o (.ppcenv)
  89. } > ram
  90. _end = . ;
  91. PROVIDE (end = .);
  92. }