u-boot.lds 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * (C) Copyright 2000
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  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_FORMAT ("elf32-bigarm", "elf32-bigarm", "elf32-bigarm")
  24. OUTPUT_ARCH (arm)
  25. ENTRY (_start)
  26. SECTIONS
  27. {
  28. . = 0x00000000;
  29. . = ALIGN (4);
  30. .text : {
  31. arch/arm/cpu/ixp/start.o(.text*)
  32. net/libnet.o(.text*)
  33. board/actux2/libactux2.o(.text*)
  34. arch/arm/cpu/ixp/libixp.o(.text*)
  35. drivers/input/libinput.o(.text*)
  36. . = env_offset;
  37. common/env_embedded.o(.ppcenv)
  38. *(.text*)
  39. }
  40. . = ALIGN(4);
  41. .rodata : {
  42. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  43. }
  44. . = ALIGN(4);
  45. .data : {
  46. *(.data*)
  47. }
  48. . = ALIGN(4);
  49. .got : {
  50. *(.got)
  51. }
  52. . =.;
  53. . = ALIGN(4);
  54. .u_boot_list : {
  55. #include <u-boot.lst>
  56. }
  57. . = ALIGN (4);
  58. .rel.dyn : {
  59. __rel_dyn_start = .;
  60. *(.rel*)
  61. __rel_dyn_end = .;
  62. }
  63. .dynsym : {
  64. __dynsym_start = .;
  65. *(.dynsym)
  66. }
  67. _end = .;
  68. .bss_start __rel_dyn_start (OVERLAY) : {
  69. KEEP(*(.__bss_start));
  70. }
  71. .bss __bss_start (OVERLAY) : {
  72. *(.bss*)
  73. . = ALIGN(4);
  74. ___bssend___ = .;
  75. }
  76. .bss_end ___bssend___ (OVERLAY) : {
  77. KEEP(*(.__bss_end__));
  78. }
  79. /DISCARD/ : { *(.dynstr*) }
  80. /DISCARD/ : { *(.dynamic*) }
  81. /DISCARD/ : { *(.plt*) }
  82. /DISCARD/ : { *(.interp*) }
  83. /DISCARD/ : { *(.gnu*) }
  84. }