2001-08-31 13:06:14 +08:00
|
|
|
OUTPUT_FORMAT(pei-i386)
|
|
|
|
SEARCH_DIR(/cygnus/i686-pc-cygwin/lib/w32api); SEARCH_DIR(/cygnus/i686-pc-cygwin/lib);
|
|
|
|
ENTRY(_mainCRTStartup)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text __image_base__ + __section_alignment__ :
|
|
|
|
{
|
|
|
|
*(.init)
|
|
|
|
*(.text)
|
|
|
|
*(SORT(.text$*))
|
|
|
|
*(.glue_7t)
|
|
|
|
*(.glue_7)
|
|
|
|
___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
|
2002-06-24 02:55:23 +08:00
|
|
|
LONG (-1); *(SORT(.ctors.*)); *(.ctors); *(.ctor); LONG (0);
|
2001-08-31 13:06:14 +08:00
|
|
|
___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
|
2002-06-24 02:55:23 +08:00
|
|
|
LONG (-1); *(SORT(.dtors.*)); *(.dtors); *(.dtor); LONG (0);
|
2001-08-31 13:06:14 +08:00
|
|
|
*(.fini)
|
|
|
|
/* ??? Why is .gcc_exc here? */
|
|
|
|
*(.gcc_exc)
|
|
|
|
etext = .;
|
|
|
|
*(.gcc_except_table)
|
|
|
|
}
|
2001-08-31 13:24:36 +08:00
|
|
|
/* The Cygwin DLL uses a section to avoid copying certain data
|
2001-08-31 13:06:14 +08:00
|
|
|
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 BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
__data_start__ = . ;
|
|
|
|
*(.data)
|
|
|
|
*(.data2)
|
|
|
|
*(SORT(.data$*))
|
|
|
|
__data_end__ = . ;
|
2001-09-01 02:16:16 +08:00
|
|
|
*(.data_cygwin_nocopy)
|
2001-08-31 13:06:14 +08:00
|
|
|
}
|
|
|
|
.rdata BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(.rdata)
|
|
|
|
*(SORT(.rdata$*))
|
|
|
|
*(.eh_frame)
|
|
|
|
}
|
|
|
|
.pdata BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(.pdata)
|
|
|
|
}
|
|
|
|
.bss BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
__bss_start__ = . ;
|
|
|
|
*(.bss)
|
2001-09-01 02:16:16 +08:00
|
|
|
*(COMMON)
|
2001-08-31 13:06:14 +08:00
|
|
|
__bss_end__ = . ;
|
|
|
|
}
|
|
|
|
.edata BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(.edata)
|
|
|
|
}
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.debug$S)
|
|
|
|
*(.debug$T)
|
|
|
|
*(.debug$F)
|
|
|
|
*(.drectve)
|
|
|
|
}
|
|
|
|
.idata BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
/* This cannot currently be handled with grouped sections.
|
|
|
|
See pe.em:sort_sections. */
|
|
|
|
SORT(*)(.idata$2)
|
|
|
|
SORT(*)(.idata$3)
|
|
|
|
/* These zeroes mark the end of the import list. */
|
|
|
|
LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
|
|
|
|
SORT(*)(.idata$4)
|
|
|
|
SORT(*)(.idata$5)
|
|
|
|
SORT(*)(.idata$6)
|
|
|
|
SORT(*)(.idata$7)
|
|
|
|
}
|
|
|
|
.CRT BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(SORT(.CRT$*))
|
|
|
|
}
|
|
|
|
.endjunk BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
/* end is deprecated, don't use it */
|
|
|
|
end = .;
|
|
|
|
_end = .;
|
|
|
|
__end__ = .;
|
|
|
|
}
|
|
|
|
.rsrc BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(.rsrc)
|
|
|
|
*(SORT(.rsrc$*))
|
|
|
|
}
|
|
|
|
.reloc BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(.reloc)
|
|
|
|
}
|
|
|
|
.stab BLOCK(__section_alignment__) (NOLOAD) :
|
|
|
|
{
|
|
|
|
[ .stab ]
|
|
|
|
}
|
|
|
|
.stabstr BLOCK(__section_alignment__) (NOLOAD) :
|
|
|
|
{
|
|
|
|
[ .stabstr ]
|
|
|
|
}
|
|
|
|
.cygheap BLOCK(64 * 1024) :
|
|
|
|
{
|
2001-09-17 11:05:05 +08:00
|
|
|
__system_dlls__ = ABSOLUTE(.) ;
|
2001-08-31 13:06:14 +08:00
|
|
|
__cygheap_start = ABSOLUTE(.) ;
|
2001-12-10 11:35:54 +08:00
|
|
|
}
|
2001-08-31 13:06:14 +08:00
|
|
|
}
|