2001-08-31 13:06:14 +08:00
|
|
|
OUTPUT_FORMAT(pei-i386)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text __image_base__ + __section_alignment__ :
|
|
|
|
{
|
|
|
|
*(.init)
|
|
|
|
*(.text)
|
|
|
|
*(SORT(.text$*))
|
|
|
|
*(.glue_7t)
|
|
|
|
*(.glue_7)
|
2005-06-01 11:46:56 +08:00
|
|
|
___CTOR_LIST__ = .; __CTOR_LIST__ = .;
|
2002-06-24 02:55:23 +08:00
|
|
|
LONG (-1); *(SORT(.ctors.*)); *(.ctors); *(.ctor); LONG (0);
|
2005-06-01 11:46:56 +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)
|
|
|
|
}
|
2005-06-01 11:46:56 +08:00
|
|
|
.autoload_text ALIGN(__section_alignment__) :
|
|
|
|
{
|
2005-06-30 07:05:41 +08:00
|
|
|
*(.*_autoload_text);
|
2005-06-01 11:46:56 +08:00
|
|
|
}
|
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__. */
|
2005-06-01 11:46:56 +08:00
|
|
|
.data ALIGN(__section_alignment__) :
|
2001-08-31 13:06:14 +08:00
|
|
|
{
|
2005-06-01 11:46:56 +08:00
|
|
|
__data_start__ = .;
|
2001-08-31 13:06:14 +08:00
|
|
|
*(.data)
|
|
|
|
*(.data2)
|
|
|
|
*(SORT(.data$*))
|
2005-06-01 11:46:56 +08:00
|
|
|
__data_end__ = .;
|
2001-09-01 02:16:16 +08:00
|
|
|
*(.data_cygwin_nocopy)
|
2001-08-31 13:06:14 +08:00
|
|
|
}
|
2005-06-01 11:46:56 +08:00
|
|
|
.rdata ALIGN(__section_alignment__) :
|
2001-08-31 13:06:14 +08:00
|
|
|
{
|
|
|
|
*(.rdata)
|
|
|
|
*(SORT(.rdata$*))
|
|
|
|
*(.eh_frame)
|
|
|
|
}
|
2005-06-01 11:46:56 +08:00
|
|
|
.pdata ALIGN(__section_alignment__) :
|
2001-08-31 13:06:14 +08:00
|
|
|
{
|
|
|
|
*(.pdata)
|
|
|
|
}
|
2005-06-01 11:46:56 +08:00
|
|
|
.bss ALIGN(__section_alignment__) :
|
2001-08-31 13:06:14 +08:00
|
|
|
{
|
2005-06-01 11:46:56 +08:00
|
|
|
__bss_start__ = .;
|
2001-08-31 13:06:14 +08:00
|
|
|
*(.bss)
|
2001-09-01 02:16:16 +08:00
|
|
|
*(COMMON)
|
2005-06-01 11:46:56 +08:00
|
|
|
__bss_end__ = .;
|
2001-08-31 13:06:14 +08:00
|
|
|
}
|
2005-06-01 11:46:56 +08:00
|
|
|
.edata ALIGN(__section_alignment__) :
|
2001-08-31 13:06:14 +08:00
|
|
|
{
|
|
|
|
*(.edata)
|
|
|
|
}
|
2005-06-09 04:18:23 +08:00
|
|
|
.rsrc BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(.rsrc)
|
|
|
|
*(SORT(.rsrc$*))
|
|
|
|
}
|
|
|
|
.reloc BLOCK(__section_alignment__) :
|
|
|
|
{
|
|
|
|
*(.reloc)
|
|
|
|
}
|
2005-06-10 04:46:00 +08:00
|
|
|
.cygwin_dll_common ALIGN(__section_alignment__):
|
|
|
|
{
|
|
|
|
*(.cygwin_dll_common)
|
|
|
|
}
|
2005-08-08 10:27:43 +08:00
|
|
|
.gnu_debuglink_overlay ALIGN(__section_alignment__) (NOLOAD):
|
|
|
|
{
|
|
|
|
BYTE(0) /* c */
|
|
|
|
BYTE(0) /* y */
|
|
|
|
BYTE(0) /* g */
|
|
|
|
BYTE(0) /* w */
|
|
|
|
BYTE(0) /* i */
|
|
|
|
BYTE(0) /* n */
|
|
|
|
BYTE(0) /* 1 */
|
|
|
|
BYTE(0) /* . */
|
|
|
|
BYTE(0) /* d */
|
|
|
|
BYTE(0) /* b */
|
|
|
|
BYTE(0) /* g */
|
|
|
|
BYTE(0) /* \0 */
|
|
|
|
LONG(0) /* checksum */
|
|
|
|
}
|
|
|
|
.idata ALIGN(__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)
|
|
|
|
. = ALIGN(16);
|
|
|
|
__cygheap_start = ABSOLUTE(.);
|
|
|
|
. = ALIGN(0x10000);
|
|
|
|
}
|
|
|
|
.cygheap ALIGN(__section_alignment__) :
|
|
|
|
{
|
|
|
|
__cygheap_mid = .;
|
|
|
|
*(.cygheap)
|
2006-07-15 03:33:55 +08:00
|
|
|
. = . + 1;
|
2005-08-08 21:53:05 +08:00
|
|
|
. = ALIGN(512 * 1024);
|
2005-08-08 10:27:43 +08:00
|
|
|
}
|
|
|
|
__cygheap_end = ABSOLUTE(.);
|
|
|
|
__cygheap_end1 = __cygheap_mid + SIZEOF(.cygheap);
|
|
|
|
__cygwin_debug_size = SIZEOF(.gnu_debuglink);
|
2001-08-31 13:06:14 +08:00
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.debug$S)
|
|
|
|
*(.debug$T)
|
|
|
|
*(.debug$F)
|
|
|
|
*(.drectve)
|
|
|
|
}
|
2005-06-01 11:46:56 +08:00
|
|
|
.stab ALIGN(__section_alignment__) (NOLOAD) :
|
|
|
|
{
|
2005-06-09 04:18:23 +08:00
|
|
|
*(.stab)
|
2005-06-01 11:46:56 +08:00
|
|
|
}
|
|
|
|
.stabstr ALIGN(__section_alignment__) (NOLOAD) :
|
|
|
|
{
|
2005-06-09 04:18:23 +08:00
|
|
|
*(.stabstr)
|
2005-06-01 11:46:56 +08:00
|
|
|
}
|
|
|
|
/* DWARF 1.1 and DWARF 2 */
|
|
|
|
.debug_aranges ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_aranges) }
|
|
|
|
.debug_pubnames ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_pubnames) }
|
|
|
|
/* DWARF 2 */
|
|
|
|
.debug_info ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_info) }
|
|
|
|
.debug_abbrev ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_abbrev) }
|
|
|
|
.debug_line ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_line) }
|
|
|
|
.debug_frame ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_frame) }
|
|
|
|
.debug_str ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_str) }
|
|
|
|
.debug_loc ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_loc) }
|
|
|
|
.debug_macinfo ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_macinfo) }
|
|
|
|
.debug_macinfo ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_macinfo) }
|
|
|
|
.debug_ranges ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_ranges) }
|
2001-08-31 13:06:14 +08:00
|
|
|
}
|