lm4f_rom.ld 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /******************************************************************************
  2. *
  3. * lm4f_rom.ld - Linker configuration file for project.
  4. *
  5. * Copyright (c) 2011 Texas Instruments Incorporated. All rights reserved.
  6. * Software License Agreement
  7. *
  8. * Texas Instruments (TI) is supplying this software for use solely and
  9. * exclusively on TI's microcontroller products. The software is owned by
  10. * TI and/or its suppliers, and is protected under applicable copyright
  11. * laws. You may not combine this software with "viral" open-source
  12. * software in order to form a larger program.
  13. *
  14. * THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  15. * NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  16. * NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. * A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  18. * CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  19. * DAMAGES, FOR ANY REASON WHATSOEVER.
  20. *
  21. * This is part of revision 8264 of the EK-LM4F232 Firmware Package.
  22. *
  23. *****************************************************************************/
  24. /* Program Entry, set to mark it as "used" and avoid gc */
  25. MEMORY
  26. {
  27. FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
  28. SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000
  29. }
  30. SECTIONS
  31. {
  32. .text :
  33. {
  34. _text = .;
  35. KEEP(*(.isr_vector))
  36. *(.text*)
  37. *(.rodata*)
  38. _etext = .;
  39. /* section information for finsh shell */
  40. . = ALIGN(4);
  41. __fsymtab_start = .;
  42. KEEP(*(FSymTab))
  43. __fsymtab_end = .;
  44. . = ALIGN(4);
  45. __vsymtab_start = .;
  46. KEEP(*(VSymTab))
  47. __vsymtab_end = .;
  48. . = ALIGN(4);
  49. } > FLASH
  50. .data : AT(ADDR(.text) + SIZEOF(.text))
  51. {
  52. _data = .;
  53. *(vtable)
  54. *(.data*)
  55. _edata = .;
  56. } > SRAM
  57. .bss :
  58. {
  59. _bss = .;
  60. *(.bss*)
  61. *(COMMON)
  62. _ebss = .;
  63. } > SRAM
  64. __bss_end = .;
  65. }