This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: gcc 3.3.3 and interworking


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

> -----Original Message-----
> From: binutils-owner@sources.redhat.com
> [mailto:binutils-owner@sources.redhat.com]On Behalf Of Dave Murphy
> Sent: 14 April 2004 18:54
> To: Daniel Jacobowitz; Dave Korn
> Cc: binutils@sources.redhat.com
> Subject: RE: gcc 3.3.3 and interworking
>
>
> Ignore me, it looks like it's a problem with the linkscript, oops.
>
> Dave
>
> >
> > Dave (Murphy), would you mind describing your testcase in more detail.
> > Also, you said you'd applied a patch to GCC but did not describe what
> > it was.  And you never told us what version of binutils you were using.
> >
> > The concept of a PLT32 relocation overflowing is a little odd.
> >
> > --
> > Daniel Jacobowitz
> > MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]