(cygheap_init): Just zero cygheap structure.
* cygwin.sc: Keep 16 byte alignment but drop all other alignments related to
cygheap. Eliminate unused __cygheap_end1.
+2011-02-11 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * cygheap.cc (_cygheap_mid): Drop unneeded section attribute.
+ (cygheap_init): Just zero cygheap structure.
+ * cygwin.sc: Keep 16 byte alignment but drop all other alignments
+ related to cygheap. Eliminate unused __cygheap_end1.
+
2011-02-11 Corinna Vinschen <corinna@vinschen.de>
* cygwin.sc: Raise default cygheap size to 1 Meg. Set alignment to
init_cygheap NO_COPY *cygheap = (init_cygheap *) &cygheap_at_start;
void NO_COPY *cygheap_max;
-extern "C" char _cygheap_mid[] __attribute__((section(".cygheap")));
+extern "C" char _cygheap_mid[];
extern "C" char _cygheap_end[];
static NO_COPY muto cygheap_protect;
if (cygheap == &cygheap_at_start)
{
cygheap = (init_cygheap *) memset (_cygheap_start, 0,
- _cygheap_mid - _cygheap_start);
+ sizeof (*cygheap));
cygheap_max = cygheap;
_csbrk (sizeof (*cygheap));
/* Default locale settings. */
SORT(*)(.idata$7)
. = ALIGN(16);
__cygheap_start = ABSOLUTE(.);
- . = ALIGN(0x10000);
}
.cygheap ALIGN(__section_alignment__) :
{
__cygheap_mid = .;
- *(.cygheap)
. = . + (1024 * 1024);
- . = ALIGN(0x10000);
+ __cygheap_end = ABSOLUTE(.);
}
- __cygheap_end = ABSOLUTE(.);
- __cygheap_end1 = __cygheap_mid + SIZEOF(.cygheap);
/DISCARD/ :
{
*(.debug$S)