This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gcc 3.3.3 and interworking
On Wed, Apr 14, 2004 at 10:18:47PM +0100, Dave Murphy wrote:
> apologies for being a complete pain, further research shows that the problem
> is something to do with the address of the text section. In the system I'm
> building the cross compiler for this is 0x08000000. Bizarrely it seems that
> any address for the text section greater than 0x01fffc0c produces the error
> (bit of an odd number really)
>
> the patch applied to gcc-3.3.3 was from
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14166
>
> the version of ninutils is 2.15.90 fom cvs HEAD
>
> I've also enabled the interworking libraries in multilib.
>
> simple testcase is :-
>
> --- test.c ----
>
> int main(void)
> {
> int x = 3;
> int y = 15;
> int z = y/x;
> return(0);
> }
>
> --- compiled with ---
>
> arm-elf-gcc -Ttext 0x2000000 -marm -mthumb-interwork test.c
Hmm, very interesting - I can reproduce this. I'll dig at it a bit
tomorrow.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer