u-boot.lds 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * (C) Copyright 2007-2010 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. .text :
  26. {
  27. arch/powerpc/cpu/mpc512x/start.o (.text*)
  28. *(.text*)
  29. . = ALIGN(16);
  30. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  31. }
  32. /* Read-write section, merged into data segment: */
  33. . = (. + 0x0FFF) & 0xFFFFF000;
  34. _erotext = .;
  35. PROVIDE (erotext = .);
  36. .reloc :
  37. {
  38. KEEP(*(.got))
  39. _GOT2_TABLE_ = .;
  40. KEEP(*(.got2))
  41. _FIXUP_TABLE_ = .;
  42. KEEP(*(.fixup))
  43. *(.fixup)
  44. }
  45. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
  46. __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
  47. .data :
  48. {
  49. *(.data*)
  50. *(.sdata*)
  51. }
  52. _edata = .;
  53. PROVIDE (edata = .);
  54. . = .;
  55. __u_boot_cmd_start = .;
  56. .u_boot_cmd : { *(.u_boot_cmd) }
  57. __u_boot_cmd_end = .;
  58. . = .;
  59. __start___ex_table = .;
  60. __ex_table : { *(__ex_table) }
  61. __stop___ex_table = .;
  62. . = ALIGN(4096);
  63. __init_begin = .;
  64. .text.init : { *(.text.init) }
  65. .data.init : { *(.data.init) }
  66. . = ALIGN(4096);
  67. __init_end = .;
  68. __bss_start = .;
  69. .bss (NOLOAD) :
  70. {
  71. *(.bss*)
  72. *(.sbss*)
  73. *(COMMON)
  74. . = ALIGN(4);
  75. }
  76. _end = . ;
  77. PROVIDE (end = .);
  78. }
  79. ENTRY(_start)