at91_rom.ld 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Copyright (C) 2005-2007 by egnite Software GmbH. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * 1. Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * 2. Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. * 3. Neither the name of the copyright holders nor the names of
  14. * contributors may be used to endorse or promote products derived
  15. * from this software without specific prior written permission.
  16. *
  17. * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
  18. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  19. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  20. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
  21. * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  22. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  23. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  24. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  25. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  26. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  27. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  28. * SUCH DAMAGE.
  29. *
  30. * For additional information see http://www.ethernut.de/
  31. */
  32. /*
  33. * $Log$
  34. * Revision 1.1 2007/08/17 13:16:31 haraldkipp
  35. * Checked in.
  36. *
  37. */
  38. /* OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") */
  39. ENTRY(_start)
  40. /* STARTUP(start_rom.o) */
  41. SEARCH_DIR(.)
  42. MEMORY
  43. {
  44. ram (rw) : org = 0x0003F000, len = 4k
  45. rom (rx) : org = 0x10000000, len = 4M
  46. }
  47. SECTIONS
  48. {
  49. .text :
  50. {
  51. *(.vectors);
  52. . = ALIGN(4);
  53. *(.init0);
  54. . = ALIGN(4);
  55. *(.init1);
  56. . = ALIGN(4);
  57. *(.init2);
  58. . = ALIGN(4);
  59. *(.init3);
  60. . = ALIGN(4);
  61. *(.init4);
  62. . = ALIGN(4);
  63. *(.init5);
  64. . = ALIGN(4);
  65. *(.text);
  66. . = ALIGN(4);
  67. *(.text.*);
  68. . = ALIGN(4);
  69. *(.rodata*);
  70. . = ALIGN(4);
  71. *(.glue_7t);
  72. . = ALIGN(4);
  73. *(.glue_7);
  74. . = ALIGN(4);
  75. _mdata = .;
  76. . = ALIGN(4);
  77. etext = .;
  78. _text_end = .;
  79. . = ALIGN(4);
  80. __data_load_start = .;
  81. } > rom
  82. .bss :
  83. {
  84. . += 0x400;
  85. PROVIDE (__stack = .);
  86. PROVIDE (__bss_start = .);
  87. *(.bss)
  88. *(COMMON)
  89. . = ALIGN(4);
  90. PROVIDE (__bss_end = .);
  91. PROVIDE (__heap_start = .);
  92. } > ram
  93. .data : AT (__data_load_start)
  94. {
  95. PROVIDE (__data_start = .);
  96. *(.data)
  97. . = ALIGN(4);
  98. edata = .;
  99. _edata = .;
  100. PROVIDE (__data_end = .);
  101. } > ram
  102. .stab 0 (NOLOAD) :
  103. {
  104. [ .stab ]
  105. }
  106. .stabstr 0 (NOLOAD) :
  107. {
  108. [ .stabstr ]
  109. }
  110. }