diff options
author | Christopher Faylor <me@cgf.cx> | 2011-02-11 16:05:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-02-11 16:05:26 +0000 |
commit | cc25fb36412a2535f5759280a5be1692d35b9a7e (patch) | |
tree | 1b1fbe52f5c6e459c4a2ccbe7cc1de7e0fab8a35 /winsup/cygwin/cygheap.cc | |
parent | 5ec0839c12fd572d476c16459a297df2e0c0d011 (diff) | |
download | cygnal-cc25fb36412a2535f5759280a5be1692d35b9a7e.tar.gz cygnal-cc25fb36412a2535f5759280a5be1692d35b9a7e.tar.bz2 cygnal-cc25fb36412a2535f5759280a5be1692d35b9a7e.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 5fee0be8e..9c861d8e5 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -33,7 +33,7 @@ static mini_cygheap NO_COPY cygheap_at_start = 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; @@ -159,7 +159,7 @@ cygheap_init () 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. */ |