output_symbols.ld 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. OUTPUT_FORMAT(elf32-i386)
  2. OUTPUT_ARCH(i386:i386)
  3. SECTIONS
  4. {
  5. /DISCARD/ :
  6. {
  7. *(.text*)
  8. *(.data)
  9. *(.data*)
  10. *(.note.gnu.property)
  11. }
  12. /* Stabs debugging sections. */
  13. .stab 0 : { *(.stab) }
  14. .stabstr 0 : { *(.stabstr) }
  15. .stab.excl 0 : { *(.stab.excl) }
  16. .stab.exclstr 0 : { *(.stab.exclstr) }
  17. .stab.index 0 : { *(.stab.index) }
  18. .stab.indexstr 0 : { *(.stab.indexstr) }
  19. .comment 0 : { *(.comment) }
  20. /* DWARF debug sections.
  21. Symbols in the DWARF debugging sections are relative to the beginning
  22. of the section so we begin them at 0. */
  23. /* DWARF 1 */
  24. .debug 0 : { *(.debug) }
  25. .line 0 : { *(.line) }
  26. /* GNU DWARF 1 extensions */
  27. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  28. .debug_sfnames 0 : { *(.debug_sfnames) }
  29. /* DWARF 1.1 and DWARF 2 */
  30. .debug_aranges 0 : { *(.debug_aranges) }
  31. .debug_pubnames 0 : { *(.debug_pubnames) }
  32. /* DWARF 2 */
  33. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  34. .debug_abbrev 0 : { *(.debug_abbrev) }
  35. .debug_line 0 : { *(.debug_line) }
  36. .debug_frame 0 : { *(.debug_frame) }
  37. .debug_str 0 : { *(.debug_str) }
  38. .debug_loc 0 : { *(.debug_loc) }
  39. .debug_macinfo 0 : { *(.debug_macinfo) }
  40. /* SGI/MIPS DWARF 2 extensions */
  41. .debug_weaknames 0 : { *(.debug_weaknames) }
  42. .debug_funcnames 0 : { *(.debug_funcnames) }
  43. .debug_typenames 0 : { *(.debug_typenames) }
  44. .debug_varnames 0 : { *(.debug_varnames) }
  45. }