+2005-08-08 Christopher Faylor <cgf@timesys.com>
+
+ * cygwin.sc: Use simpler method to align .cygheap.
+ * dllfixdbg: Just copy .stab and .stabstr sections when making
+ cygwin1.dbg, rather than relying on objcopy to keep only the debug
+ sections since objcopy seems to get it wrong.
+
+2005-08-08 Corinna Vinschen <corinna@vinschen.de>
+
+ * dtable.cc (build_fh_pc): Check setting fh to fhandler_nodevice for
+ NULL, too.
+
2005-08-08 Corinna Vinschen <corinna@vinschen.de>
* ftw.c: Include winsup.h.
{
__cygheap_mid = .;
*(.cygheap)
- . = ALIGN(512 * 1024, 0x10000);
+ . = ALIGN(512 * 1024);
}
__cygheap_end = ABSOLUTE(.);
__cygheap_end1 = __cygheap_mid + SIZEOF(.cygheap);
my @objcopy = ((shift));
my $dll = shift;
my $dbg = shift;
-xit 0, @objcopy, '--only-keep-debug', $dll, $dbg;
+xit 0, @objcopy, '-j', '.stab', '-j', '.stabstr', $dll, $dbg;
xit 0, @objcopy, '-g', '--add-gnu-debuglink=' . $dbg, $dll;
open(OBJDUMP, '-|', "$objdump --headers $dll");
my %section;
}
}
- if (!fh)
- set_errno (EMFILE);
+ if (fh == fh_unset)
+ fh = cnew (fhandler_nodevice) ();
+
+ if (fh)
+ fh->set_name (pc);
else
- {
- if (fh == fh_unset)
- fh = cnew (fhandler_nodevice) ();
- fh->set_name (pc);
- }
+ set_errno (EMFILE);
debug_printf ("fh %p", fh);
return fh;