[fpc-devel] symify.pp broken
rr at bttr-software.de
Mon Apr 7 13:23:56 CEST 2008
Peter Vreman wrote:
> >> Runtime error 255 at $000020AC
> >> $000020AC of ?·?
> >> $000020B8 of ?·?
> >> $000020C9 of ?·?
> >> $00002098 of ?·?
> >> Looks like the lineinfo unit is also broken.
> > But it works for old FPC versions 2.0.4 (dos204.zip), 2.2.0 (my own
> > build), or 2.2.1 (fpc-2.2.1.go32v2.zip).
> Parts of the lineinfo related code are rewritten in 2.3.1. There is no active development done on
> go32v2. So it can be that svn code is broken go32v2.
I identified the problem now: "secofs" value returned by function
"FindSectionCoff" in file "exeinfo.pp" is always 2,048 bytes too small.
2,048 (or $800) is the size of the go32 EXE stub.
I failed to find an elegant solution, that doesn't break PE32 or
PE32PLUS. Maybe somebody else, who's more familiar with FPC's source
code, could fix this?! Of course, I could assist as a tester.
More information about the fpc-devel