link.ld 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /******************************************************************************
  2. *
  3. * hello.ld - Linker configuration file for hello.
  4. *
  5. * Copyright (c) 2012-2017 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 2.1.4.178 of the EK-TM4C123GXL Firmware Package.
  22. *
  23. *****************************************************************************/
  24. MEMORY
  25. {
  26. FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
  27. SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000
  28. }
  29. SECTIONS
  30. {
  31. .text :
  32. {
  33. _text = .;
  34. KEEP(*(.isr_vector))
  35. *(.text*)
  36. *(.rodata*)
  37. _etext = .;
  38. } > FLASH
  39. .data : AT(ADDR(.iplt) )
  40. {
  41. _data = .;
  42. _ldata = LOADADDR (.data);
  43. *(vtable)
  44. *(.data*)
  45. _edata = .;
  46. } > SRAM
  47. .bss :
  48. {
  49. _bss = .;
  50. *(.bss*)
  51. *(COMMON)
  52. _ebss = .;
  53. } > SRAM
  54. }