Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Link errors
@ 2004-07-19 15:48 martin.nichols
  2004-07-19 16:43 ` David Daney
  0 siblings, 1 reply; 3+ messages in thread
From: martin.nichols @ 2004-07-19 15:48 UTC (permalink / raw)
  To: linux-mips

Hi All,

I'm new to MIPs architecture and Linux so apologies in advance!

I'm trying to build an application to run on the Au1100.
I have a crosscompiler setup (gcc 3.2) and can build a 'hello world' that
runs on the target.
When I try building a more serious application using Kdevelop - with the
appropriate settings
for the crosstools - I get lots of errors like this:
assert.o(.text+0x1cc): relocation truncated to fit: R_MIPS_GOT16
__assert_program_name
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown
-linux-gnu/lib/libc.a(dcigettext.o): In function `_nl_find_msg':
dcigettext.o(.text+0x153c): relocation truncated to fit: R_MIPS_CALL16
_nl_load_domain
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown
-linux-gnu/lib/libc.a(finddomain.o): In function `_nl_find_domain':

Could someone tell me what I'm doing wrong please.

Thanks,

Martin.

 ###  OXFORD INSTRUMENTS   http://www.oxford-instruments.com/  ### 

Unless stated above to be non-confidential, this E-mail and any 
attachments are private and confidential and are for the addressee 
only and may not be used, copied or disclosed save to the addressee.
If you have received this E-mail in error please notify us upon receipt 
and delete it from your records. Internet communications are not secure 
and Oxford Instruments is not responsible for their abuse by third 
parties nor for any alteration or corruption in transmission. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Link errors
  2004-07-19 15:48 Link errors martin.nichols
@ 2004-07-19 16:43 ` David Daney
  0 siblings, 0 replies; 3+ messages in thread
From: David Daney @ 2004-07-19 16:43 UTC (permalink / raw)
  To: martin.nichols; +Cc: linux-mips

martin.nichols@oxinst.co.uk wrote:
> Hi All,
> 
> I'm new to MIPs architecture and Linux so apologies in advance!
> 
> I'm trying to build an application to run on the Au1100.
> I have a crosscompiler setup (gcc 3.2) and can build a 'hello world' that
> runs on the target.
> When I try building a more serious application using Kdevelop - with the
> appropriate settings
> for the crosstools - I get lots of errors like this:
> assert.o(.text+0x1cc): relocation truncated to fit: R_MIPS_GOT16
> __assert_program_name
> /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown
> -linux-gnu/lib/libc.a(dcigettext.o): In function `_nl_find_msg':
> dcigettext.o(.text+0x153c): relocation truncated to fit: R_MIPS_CALL16
> _nl_load_domain
> /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown
> -linux-gnu/lib/libc.a(finddomain.o): In function `_nl_find_domain':
> 
> Could someone tell me what I'm doing wrong please.
> 
This is the got overflow problem.

Later versions of binutils have multi-got support (2.15 for example),
which under most circumstances will fix the problem.

If you have extreamly large compilation units you might have to use a
32bit got index.  In GCC3.4 and later this is done with the -mxgot
option.  With eariler versions of GCC you have to pass -xgot to the
assembler (-Wa,-xgot IIRC).

David Daney.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Link errors
@ 2004-07-20 14:47 martin.nichols
  0 siblings, 0 replies; 3+ messages in thread
From: martin.nichols @ 2004-07-20 14:47 UTC (permalink / raw)
  To: ddaney; +Cc: linux-mips

David,

Many thanks.
I should have Googled first ;)

Best regards,

Martin Nichols.

> -----Original Message-----
> From:	David Daney [SMTP:ddaney@avtrex.com]
> Sent:	19 July 2004 17:44
> To:	martin.nichols@oxinst.co.uk
> Cc:	linux-mips@linux-mips.org
> Subject:	Re: Link errors
> 
> martin.nichols@oxinst.co.uk wrote:
> > Hi All,
> > 
> > I'm new to MIPs architecture and Linux so apologies in advance!
> > 
> > I'm trying to build an application to run on the Au1100.
> > I have a crosscompiler setup (gcc 3.2) and can build a 'hello world'
> that
> > runs on the target.
> > When I try building a more serious application using Kdevelop - with the
> > appropriate settings
> > for the crosstools - I get lots of errors like this:
> > assert.o(.text+0x1cc): relocation truncated to fit: R_MIPS_GOT16
> > __assert_program_name
> >
> /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unkno
> wn
> > -linux-gnu/lib/libc.a(dcigettext.o): In function `_nl_find_msg':
> > dcigettext.o(.text+0x153c): relocation truncated to fit: R_MIPS_CALL16
> > _nl_load_domain
> >
> /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unkno
> wn
> > -linux-gnu/lib/libc.a(finddomain.o): In function `_nl_find_domain':
> > 
> > Could someone tell me what I'm doing wrong please.
> > 
> This is the got overflow problem.
> 
> Later versions of binutils have multi-got support (2.15 for example),
> which under most circumstances will fix the problem.
> 
> If you have extreamly large compilation units you might have to use a
> 32bit got index.  In GCC3.4 and later this is done with the -mxgot
> option.  With eariler versions of GCC you have to pass -xgot to the
> assembler (-Wa,-xgot IIRC).
> 
> David Daney.
> 
> 
> +++ Virus-scanned by Messagelabs for Oxford Instruments +++
> 
 ###  OXFORD INSTRUMENTS   http://www.oxford-instruments.com/  ### 

Unless stated above to be non-confidential, this E-mail and any 
attachments are private and confidential and are for the addressee 
only and may not be used, copied or disclosed save to the addressee.
If you have received this E-mail in error please notify us upon receipt 
and delete it from your records. Internet communications are not secure 
and Oxford Instruments is not responsible for their abuse by third 
parties nor for any alteration or corruption in transmission. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-20 14:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-19 15:48 Link errors martin.nichols
2004-07-19 16:43 ` David Daney
  -- strict thread matches above, loose matches on Subject: below --
2004-07-20 14:47 martin.nichols

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox