/* Script for ld -r: link without relocation */ OUTPUT_FORMAT(pe-i386) SEARCH_DIR("/mingw/mingw32/lib"); SEARCH_DIR("/mingw/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); ENTRY(_mainCRTStartup) SECTIONS { .text : { *(.text) *(.glue_7t) *(.glue_7) /* ??? Why is .gcc_exc here? */ *(.gcc_except_table) } /* The Cygwin32 library uses a section to avoid copying certain data on fork. This used to be named ".data". The linker used to include this between __data_start__ and __data_end__, but that breaks building the cygwin32 dll. Instead, we name the section ".data_cygwin_nocopy" and explictly include it after __data_end__. */ .data : { *(.data) *(.data2) } .rdata : { *(.rdata) *(.eh_frame) *(.rdata_runtime_pseudo_reloc) } .pdata : { *(.pdata) } .bss : { *(.bss) *(COMMON) } .edata : { *(.edata) } /DISCARD/ : { *(.debug$S) *(.debug$T) *(.debug$F) *(.drectve) } .idata : { /* This cannot currently be handled with grouped sections. See pe.em:sort_sections. */ } .CRT : { } .endjunk : { /* end is deprecated, don't use it */ } .rsrc : { *(.rsrc) } .reloc : { *(.reloc) } .stab : { [ .stab ] } .stabstr : { [ .stabstr ] } }