From 5d4a672193117bd5109f517236e6649ec7b9a4ca Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 1 Jun 2005 04:00:40 +0000 Subject: [PATCH] * cygheap.cc (cygheap_end): Remove bogus section attribute. * cygwin.sc: Make __cygheap_mid absolute. Remove unused _cygheap_foo. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/cygheap.cc | 2 +- winsup/cygwin/cygwin.sc | 3 +-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c79e095ef..3d2c4d522 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-05-31 Christopher Faylor + + * cygheap.cc (cygheap_end): Remove bogus section attribute. + * cygwin.sc: Make __cygheap_mid absolute. Remove unused _cygheap_foo. + 2005-05-30 Christopher Faylor * child_info.h (child_info::cygheap_h): Delete. diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 5e85a074f..3d0ce4b1b 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -29,7 +29,7 @@ init_cygheap NO_COPY *cygheap; void NO_COPY *cygheap_max; extern "C" char _cygheap_mid[] __attribute__((section(".cygheap"))); -extern "C" char _cygheap_end[] __attribute__((section(".cygheap_end"))); +extern "C" char _cygheap_end[]; static NO_COPY muto cygheap_protect; diff --git a/winsup/cygwin/cygwin.sc b/winsup/cygwin/cygwin.sc index 6393dab9a..6b5df0dec 100644 --- a/winsup/cygwin/cygwin.sc +++ b/winsup/cygwin/cygwin.sc @@ -104,10 +104,9 @@ SECTIONS __section_alignment__ = 64 * 1024; .cygheap ALIGN(4096): { - __cygheap_mid = .; + __cygheap_mid = ABSOLUTE(.); . = ALIGN(512 * 1024, 0x10000); . += 8192; /* inexplicably needed for alignment on 64K boundary?!? */ -_cygheap_foo = .; } __cygheap_end = ABSOLUTE(.); }