x86_ram.lds 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  23. . = ALIGN(4);
  24. .rodata : { *(.rodata) }
  25. . = ALIGN(4);
  26. .data : { *(.data) }
  27. . = ALIGN(4);
  28. __bss_start = .;
  29. .bss : { *(.bss) }
  30. __bss_end = .;
  31. /* stabs debugging sections. */
  32. .stab 0 : { *(.stab) }
  33. .stabstr 0 : { *(.stabstr) }
  34. .stab.excl 0 : { *(.stab.excl) }
  35. .stab.exclstr 0 : { *(.stab.exclstr) }
  36. .stab.index 0 : { *(.stab.index) }
  37. .stab.indexstr 0 : { *(.stab.indexstr) }
  38. .comment 0 : { *(.comment) }
  39. .debug_abbrev 0 : { *(.debug_abbrev) }
  40. .debug_info 0 : { *(.debug_info) }
  41. .debug_line 0 : { *(.debug_line) }
  42. .debug_pubnames 0 : { *(.debug_pubnames) }
  43. .debug_aranges 0 : { *(.debug_aranges) }
  44. _end = .;
  45. }