sep6200.ld 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. OUTPUT_FORMAT("elf32-littleunicore32", "elf32-bigunicore32", "elf32-littleunicore32")
  2. OUTPUT_ARCH(unicore32)
  3. ENTRY(_start)
  4. SEARCH_DIR("/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS5/unicore32-linux/lib");
  5. SECTIONS
  6. {
  7. . = 0x00000000;
  8. . = ALIGN(4);
  9. .text :
  10. {
  11. *(.init)
  12. *(.text)
  13. *(.gnu.linkonce.t*)
  14. /* section information for finsh shell */
  15. . = ALIGN(4);
  16. __fsymtab_start = .;
  17. KEEP(*(FSymTab))
  18. __fsymtab_end = .;
  19. . = ALIGN(4);
  20. __vsymtab_start = .;
  21. KEEP(*(VSymTab))
  22. __vsymtab_end = .;
  23. . = ALIGN(4);
  24. /* section information for modules */
  25. . = ALIGN(4);
  26. __rtmsymtab_start = .;
  27. KEEP(*(RTMSymTab))
  28. __rtmsymtab_end = .;
  29. }
  30. . = ALIGN(4);
  31. .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
  32. . = ALIGN(4);
  33. .ctors :
  34. {
  35. PROVIDE(__ctors_start__ = .);
  36. KEEP(*(SORT(.ctors.*)))
  37. KEEP(*(.ctors))
  38. PROVIDE(__ctors_end__ = .);
  39. }
  40. .dtors :
  41. {
  42. PROVIDE(__dtors_start__ = .);
  43. KEEP(*(SORT(.dtors.*)))
  44. KEEP(*(.dtors))
  45. PROVIDE(__dtors_end__ = .);
  46. }
  47. . = ALIGN(4);
  48. .data :
  49. {
  50. *(.data)
  51. *(.data.*)
  52. *(.gnu.linkonce.d*)
  53. }
  54. . = ALIGN(4);
  55. .nobss : { *(.nobss) }
  56. /*. = 0x00300000*/
  57. . = ALIGN(4);
  58. __bss_start = .;
  59. .bss : { *(.bss) }
  60. __bss_end = .;
  61. /* stabs debugging sections. */
  62. .stab 0 : { *(.stab) }
  63. .stabstr 0 : { *(.stabstr) }
  64. .stab.excl 0 : { *(.stab.excl) }
  65. .stab.exclstr 0 : { *(.stab.exclstr) }
  66. .stab.index 0 : { *(.stab.index) }
  67. .stab.indexstr 0 : { *(.stab.indexstr) }
  68. .comment 0 : { *(.comment) }
  69. .debug_abbrev 0 : { *(.debug_abbrev) }
  70. .debug_info 0 : { *(.debug_info) }
  71. .debug_line 0 : { *(.debug_line) }
  72. .debug_pubnames 0 : { *(.debug_pubnames) }
  73. .debug_aranges 0 : { *(.debug_aranges) }
  74. _end = .;
  75. }