x86_ram.lds 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. /* section information for initialization */
  26. . = ALIGN(4);
  27. __rt_init_start = .;
  28. KEEP(*(SORT(.rti_fn*)))
  29. __rt_init_end = .;
  30. }
  31. . = ALIGN(4);
  32. .rodata : { *(.rodata*) }
  33. . = ALIGN(4);
  34. .data : { *(.data) }
  35. . = ALIGN(4);
  36. __bss_start = .;
  37. .bss : { *(.bss) }
  38. __bss_end = .;
  39. /* stabs debugging sections. */
  40. .stab 0 : { *(.stab) }
  41. .stabstr 0 : { *(.stabstr) }
  42. .stab.excl 0 : { *(.stab.excl) }
  43. .stab.exclstr 0 : { *(.stab.exclstr) }
  44. .stab.index 0 : { *(.stab.index) }
  45. .stab.indexstr 0 : { *(.stab.indexstr) }
  46. .comment 0 : { *(.comment) }
  47. .debug_abbrev 0 : { *(.debug_abbrev) }
  48. .debug_info 0 : { *(.debug_info) }
  49. .debug_line 0 : { *(.debug_line) }
  50. .debug_pubnames 0 : { *(.debug_pubnames) }
  51. .debug_aranges 0 : { *(.debug_aranges) }
  52. _end = .;
  53. }