From 82eaabf52123bfaf45adb30d1e48271bd9207cae Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 7 Aug 2005 02:38:13 +0000 Subject: * Makefile.in: Warn when end of cygheap is not on 64k boundary. * cygwin.sc: Try harder to ensure that cygheap is on a 64k boundary. Move cygheap to end of image to stop interference from unstripped debug regions. --- winsup/cygwin/Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winsup/cygwin/Makefile.in') diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index 087289b1c..9949a1ee1 100644 --- a/winsup/cygwin/Makefile.in +++ b/winsup/cygwin/Makefile.in @@ -372,6 +372,12 @@ $(TEST_DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DLL_IMPORTS) $(LIBSERVER) $(LIBC) -e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \ $(MALLOC_OBJ) $(LIBSERVER) $(LIBM) $(LIBC) \ -lgcc $(DLL_IMPORTS) + @$(NM) $@ | perl -Minteger -n -e '/^(61[0-9a-f]+) A __cygheap_end/ and do {$$cygheap_end = $$1; exit;};\ + END { \ + die "ERROR: _cygheap_end not found in $@\n" unless defined($$cygheap_end); \ + die "ERROR: _cygheap_end is not on a 64k boundary (0x$$cygheap_end)!\n" if (hex($$cygheap_end) & 0xffff);\ + exit 0; \ + }' @ln -f $@ new-$(DLL_NAME) # Rule to build libcygwin.a -- cgit v1.2.3