u-boot.lds.ram 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  25. MEMORY {
  26. ram (!rx) : org = 0x00000000 , LENGTH = 8M
  27. code (!rx) : org = 0x00002000 , LENGTH = (4M - 0x2000)
  28. rom (rx) : org = 0xfff00000 , LENGTH = 512K
  29. }
  30. SECTIONS
  31. {
  32. _f_init = .;
  33. PROVIDE(_f_init = .);
  34. _f_init_rom = .;
  35. PROVIDE(_f_init_rom = .);
  36. .init : {
  37. cpu/mpc824x/start.o (.text)
  38. *(.init)
  39. } > ram
  40. _init_size = SIZEOF(.init);
  41. PROVIDE(_init_size = SIZEOF(.init));
  42. ENTRY(_start)
  43. /* _ftext = .;
  44. _ftext_rom = .;
  45. _text_size = SIZEOF(.text);
  46. */
  47. .text : {
  48. *(.text)
  49. *(.got1)
  50. } > ram
  51. .rodata : { *(.rodata) } > ram
  52. .dtors : { *(.dtors) } > ram
  53. .data : { *(.data) } > ram
  54. .sdata : { *(.sdata) } > ram
  55. .sdata2 : { *(.sdata2)
  56. *(.got)
  57. _GOT2_TABLE_ = .;
  58. *(.got2)
  59. _FIXUP_TABLE_ = .;
  60. *(.fixup)
  61. } > ram
  62. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  63. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  64. .sbss : { *(.sbss) } > ram
  65. .sbss2 : { *(.sbss2) } > ram
  66. .bss : { *(.bss) } > ram
  67. .debug : { *(.debug) } > ram
  68. .line : { *(.line) } > ram
  69. .symtab : { *(.symtab) } > ram
  70. .shrstrtab : { *(.shstrtab) } > ram
  71. .strtab : { *(.strtab) } > ram
  72. /* .reloc :
  73. {
  74. *(.got)
  75. _GOT2_TABLE_ = .;
  76. *(.got2)
  77. _FIXUP_TABLE_ = .;
  78. *(.fixup)
  79. } > ram
  80. */
  81. __u_boot_cmd_start = .;
  82. .u_boot_cmd : { *(.u_boot_cmd) }
  83. __u_boot_cmd_end = .;
  84. __start___ex_table = .;
  85. __ex_table : { *(__ex_table) } > ram
  86. __stop___ex_table = .;
  87. .ppcenv :
  88. {
  89. common/environment.o (.ppcenv)
  90. } > ram
  91. _end = . ;
  92. PROVIDE (end = .);
  93. }