Re: [cc65] rebuilding libraries - generated program crashes

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-05-30 00:06:42


Hi!

On Thu, May 29, 2003 at 09:09:15AM -0400, jimsymolon wrote:
> Copying that new program (through samba
> to the windows box and then using a2tools) to DOS3.3 and running in
> applewin - the program crashes.

Just to be sure about that cr/lf problem: When copied to the windows box,
does the program have the same size as before (on the linux box)?

> The
> binary built on linux looks correct in the emulator but the function
> calls jump to the wrong place.

Which archives (versions) were you using and where did you get them from?

> For example: the zerobss call,  on both
> binaries (the windows and the linux)  the JSR is to EEB but that
> location is 4 bytes short it should be to EEE.
>
> Its almost like the EXEHDR is messing things up.  It it 4 bytes long.

$EEE - $EEB = $003. If it were really the EXEHDR segment that is missing, you
wouldn't get 3 byte offsets.

> Am I forgetting some type flag somewhere ??

I don't think so. Compiling the sources and the libraries is straight forward
and a lot of people are doing it. There have been a few cases where people
reported similar problems, but in each case the problem has been caused by
passing intermediate or final binary files through a tool that didn't handle
binary files correctly.

If the above test fails (all binaries have the same size), can you send me the
output files in private mail?

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-05-30 00:07:14 CEST