Issue with gbafix compiled on 64 bit system

Post Reply
zazery
Posts: 2
Joined: Thu Jul 24, 2008 3:59 am

Issue with gbafix compiled on 64 bit system

Post by zazery » Thu Jul 24, 2008 4:52 am

When gbafix has been compiled for 64bit platforms, the header it produces is incorrect due to the different size of unsigned longs on the platform. I have only tried the 64bit linux binary found in devkitARM_r23b-x86_64-linux.tar.bz2 but I assume it would be an issue for 64bit Windows as well.

This is the first time I've submitted a patch to a project so I hope I did it properly. This patch is for /tools/gba/gbatools/gbafix.c. Alternately the source could be compiled with the -m32 flag.

Code: Select all

53a54,59
> #ifdef __LP64__
>       typedef unsigned int ul;
> #else
>       typedef unsigned long ul;
> #endif
>
56c62
<       unsigned long   start_code;                     // B instruction
---
>       ul                  start_code;                 // B instruction
59c65
<       unsigned long   game_code;                      //
---
>       ul              game_code;                      //
70d75
<

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest