Rewrite/fix cygwin1.dbg generation
Mon Nov 5 12:04:00 GMT 2007
On Nov 5 06:57, Christopher Faylor wrote:
> On Mon, Nov 05, 2007 at 12:20:48PM +0100, Corinna Vinschen wrote:
> >On Nov 5 10:19, Pedro Alves wrote:
> >> It occurred me that the problem may be that
> >> ld is accounting for the virtual address and virtual size of the last section
> >> to write the SizeOfImage field in the PE headers, in
> >> bfd/peXXigen.c:_bfd_XXi_swap_aouthdr_out.
> >> We can change it to not include non ALLOC, DEBUG sections.
> >> Anyone tried that already?
> >Not me. It never occurred to me that this could be a problem in ld,
> >actually. If that's the problem and we can fix it, that would be really
> >cool. IIUTC, it would remove the necessity to create a cygwin1.dbg file
> >at all.
> The real question is if the above is actually doing the right thing wrt
> LINK.EXE. When I was playing with this, I could duplicate the behavior
> I didn't want by fiddling with the bits in the sections with Microsoft
> tools, bypassing ld entirely. So, I'm not sure that this is an ld.exe
Too bad. It would have been nice, though. Ld can be fixed, in contrast
to the Windows loader.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
More information about the Cygwin-patches