Subject: Re: howto create executable > 32MB ?
To: None <port-macppc@netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: port-macppc
Date: 06/16/2004 21:02:07
On 06/15/2004 10:47:36 PM MST Bill Studenmund wrote:
>
>Why does your program need 32 MB of BSS? malloc() is the way to go for
>lots of memory.

It's not my program, it's xmame (x.mame.net). I think it's simply big :-)

>There is one thing we should probably add to our linker to help with
>programs over 32 MB big; a way to inject code that will make 32 bit jumps.
>When we encounter a subroutine call (or jump, but that's unlikely to ever
>happen), we add such code near the 24 bit relocation, point the 24 bit
>relocation to the added code, and have the added code jump to the original
>location.

I got it to work after a hint from Matt Thomas:
Adding -mlongcall to the compiler flags, using binutils 2.15, and
using -Wl,--relax to link did the trick.

regards,
chris