84 lines
1.6 KiB
Plaintext
84 lines
1.6 KiB
Plaintext
/* Script for ld -Ur: link w/out relocation, do create constructors */
|
|
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)
|
|
___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
|
|
LONG (-1); *(SORT(.ctors.*)); *(.ctors); *(.ctor); LONG (0);
|
|
___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
|
|
LONG (-1); *(SORT(.dtors.*)); *(.dtors); *(.dtor); LONG (0);
|
|
/* ??? 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 ]
|
|
}
|
|
}
|