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