bootmgr.lds 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * This file is part of the MicroPython project, http://micropython.org/
  3. *
  4. * The MIT License (MIT)
  5. *
  6. * Copyright (c) 2015 Daniel Campora
  7. *
  8. * Permission is hereby granted, free of charge, to any person obtaining a copy
  9. * of this software and associated documentation files (the "Software"), to deal
  10. * in the Software without restriction, including without limitation the rights
  11. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. * copies of the Software, and to permit persons to whom the Software is
  13. * furnished to do so, subject to the following conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included in
  16. * all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. * THE SOFTWARE.
  25. */
  26. __stack_size__ = 1024;
  27. MEMORY
  28. {
  29. SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00004000
  30. }
  31. ENTRY(ResetISR)
  32. SECTIONS
  33. {
  34. .text :
  35. {
  36. _text = .;
  37. KEEP(*(.intvecs))
  38. *(.boot*)
  39. *(.text*)
  40. *(.rodata*)
  41. *(.ARM.extab* .gnu.linkonce.armextab.*)
  42. . = ALIGN(8);
  43. } > SRAM
  44. .ARM :
  45. {
  46. __exidx_start = .;
  47. *(.ARM.exidx*)
  48. __exidx_end = .;
  49. _etext = .;
  50. } > SRAM
  51. .data :
  52. {
  53. _data = .;
  54. *(.data*)
  55. . = ALIGN (8);
  56. _edata = .;
  57. } > SRAM
  58. .bss :
  59. {
  60. _bss = .;
  61. *(.bss*)
  62. *(COMMON)
  63. _ebss = .;
  64. } > SRAM
  65. .stack ORIGIN(SRAM) + LENGTH(SRAM) - __stack_size__ :
  66. {
  67. . = ALIGN(8);
  68. _stack = .;
  69. . = . + __stack_size__;
  70. . = ALIGN(8);
  71. _estack = .;
  72. } > SRAM
  73. }