x86_ram.lds 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
  2. OUTPUT_ARCH(i386)
  3. ENTRY(_start)
  4. SECTIONS
  5. {
  6. . = 0x00100000;
  7. . = ALIGN(4);
  8. .text :
  9. {
  10. *(.init)
  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. __rtmsymtab_start = .;
  23. KEEP(*(RTMSymTab));
  24. __rtmsymtab_end = .;
  25. }
  26. . = ALIGN(4);
  27. .rodata : { *(.rodata*) }
  28. . = ALIGN(4);
  29. .data : { *(.data) }
  30. . = ALIGN(4);
  31. __bss_start = .;
  32. .bss : { *(.bss) }
  33. __bss_end = .;
  34. /* stabs debugging sections. */
  35. .stab 0 : { *(.stab) }
  36. .stabstr 0 : { *(.stabstr) }
  37. .stab.excl 0 : { *(.stab.excl) }
  38. .stab.exclstr 0 : { *(.stab.exclstr) }
  39. .stab.index 0 : { *(.stab.index) }
  40. .stab.indexstr 0 : { *(.stab.indexstr) }
  41. .comment 0 : { *(.comment) }
  42. .debug_abbrev 0 : { *(.debug_abbrev) }
  43. .debug_info 0 : { *(.debug_info) }
  44. .debug_line 0 : { *(.debug_line) }
  45. .debug_pubnames 0 : { *(.debug_pubnames) }
  46. .debug_aranges 0 : { *(.debug_aranges) }
  47. _end = .;
  48. }