summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygwin.sc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cygwin.sc')
-rw-r--r--winsup/cygwin/cygwin.sc65
1 files changed, 41 insertions, 24 deletions
diff --git a/winsup/cygwin/cygwin.sc b/winsup/cygwin/cygwin.sc
index e2a83d05d..1bfbd794a 100644
--- a/winsup/cygwin/cygwin.sc
+++ b/winsup/cygwin/cygwin.sc
@@ -70,6 +70,47 @@ SECTIONS
{
*(.cygwin_dll_common)
}
+ .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)
+ . = ALIGN(512 * 1024, 0x10000);
+ }
+ __cygheap_end = ABSOLUTE(.);
+ __cygheap_end1 = __cygheap_mid + SIZEOF(.cygheap);
+ __cygwin_debug_size = SIZEOF(.gnu_debuglink);
/DISCARD/ :
{
*(.debug$S)
@@ -98,28 +139,4 @@ SECTIONS
.debug_macinfo ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_macinfo) }
.debug_macinfo ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_macinfo) }
.debug_ranges ALIGN(__section_alignment__) (NOLOAD) : { *(.debug_ranges) }
- .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)
- . = ALIGN(512 * 1024, 0x10000);
- }
- __cygheap_end = ABSOLUTE(.);
- __cygheap_end1 = __cygheap_mid + SIZEOF(.cygheap);
}