imx6.lds 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  2. OUTPUT_ARCH(arm)
  3. SECTIONS
  4. {
  5. . = 0x80100000;
  6. __text_start = .;
  7. .text :
  8. {
  9. *(.vectors)
  10. *(.text)
  11. *(.text.*)
  12. /* section information for finsh shell */
  13. . = ALIGN(4);
  14. __fsymtab_start = .;
  15. KEEP(*(FSymTab))
  16. __fsymtab_end = .;
  17. . = ALIGN(4);
  18. __vsymtab_start = .;
  19. KEEP(*(VSymTab))
  20. __vsymtab_end = .;
  21. . = ALIGN(4);
  22. /* section information for modules */
  23. . = ALIGN(4);
  24. __rtmsymtab_start = .;
  25. KEEP(*(RTMSymTab))
  26. __rtmsymtab_end = .;
  27. /* section information for initialization */
  28. . = ALIGN(4);
  29. __rt_init_start = .;
  30. KEEP(*(SORT(.rti_fn*)))
  31. __rt_init_end = .;
  32. } =0
  33. __text_end = .;
  34. __rodata_start = .;
  35. .rodata : { *(.rodata) *(.rodata.*) }
  36. __rodata_end = .;
  37. . = ALIGN(4);
  38. .ctors :
  39. {
  40. PROVIDE(__ctors_start__ = .);
  41. KEEP(*(SORT(.ctors.*)))
  42. KEEP(*(.ctors))
  43. PROVIDE(__ctors_end__ = .);
  44. }
  45. .dtors :
  46. {
  47. PROVIDE(__dtors_start__ = .);
  48. KEEP(*(SORT(.dtors.*)))
  49. KEEP(*(.dtors))
  50. PROVIDE(__dtors_end__ = .);
  51. }
  52. . = ALIGN(16 * 1024);
  53. .l1_page_table :
  54. {
  55. __l1_page_table_start = .;
  56. . += 16K;
  57. }
  58. __data_start = .;
  59. . = ALIGN(4);
  60. .data :
  61. {
  62. *(.data)
  63. *(.data.*)
  64. }
  65. __data_end = .;
  66. . = ALIGN(4);
  67. __bss_start = .;
  68. .bss :
  69. {
  70. *(.bss)
  71. *(.bss.*)
  72. *(COMMON)
  73. . = ALIGN(4);
  74. }
  75. . = ALIGN(4);
  76. __bss_end = .;
  77. /* Stabs debugging sections. */
  78. .stab 0 : { *(.stab) }
  79. .stabstr 0 : { *(.stabstr) }
  80. .stab.excl 0 : { *(.stab.excl) }
  81. .stab.exclstr 0 : { *(.stab.exclstr) }
  82. .stab.index 0 : { *(.stab.index) }
  83. .stab.indexstr 0 : { *(.stab.indexstr) }
  84. .comment 0 : { *(.comment) }
  85. _end = .;
  86. }