make_linker_eo_script 799 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. cat << EOF
  3. SECTIONS {
  4. .text : { *(.text) }
  5. .data : { __${1}_data_start = . ; *(.data) __${1}_data_end = . ;}
  6. .rodata : { *(.rodata*) }
  7. .bss : { __${1}_bss_start = . ; *(.bss) __${1}_bss_end = . ;}
  8. .debug_abbrev : { *(.debug_abbrev) }
  9. .debug_info : { *(.debug_info) }
  10. .debug_line : { *(.debug_line) }
  11. .debug_macinfo : { *(.debug_macinfo) }
  12. .dtors : { *(.dtors) }
  13. .ctors : { *(.ctors) }
  14. .data.rel.local : { *(.data.rel.local) }
  15. .data.rel.ro.local : { *(.data.rel.ro.local) }
  16. .debug_frame : { *(.debug_frame) }
  17. .eh_frame : { *(.eh_frame) }
  18. .debug_loc : { *(.debug_loc) }
  19. .debug_pubname : { *(.debug_pubname) }
  20. .debug_aranges : { *(.debug_aranges) }
  21. .debug_ranges : { *(.debug_ranges) }
  22. .debug_str : { *(.debug_str) }
  23. .comment : { *(.comment) }
  24. .note.GNU-stack : { *(.note.GNU-stack) }
  25. }
  26. EOF