public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] relocaation truncated ?
@ 2001-01-09  1:26 jacky
  2001-01-09 10:24 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: jacky @ 2001-01-09  1:26 UTC (permalink / raw)
  To: ecos-discuss

Hi all;
   
    I am porting viewml to ecos,but I meet a problem, can someone do me a
favor to tell me how to solve this. THe following is the error messages:  

 html.o:/home/root/myprojects/mips_for/viewml-0.15/src/g++/stl_alloc.h
          :473: relocation truncated to fit: R_MIPS_GPREL16
          __default_alloc_template<false, 0>::start_free

What is the meaning of R_MIPS_GPREEL16, what will cause this kind of
error?  Thank you!

jacky
1/9/2001 

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

* Re: [ECOS] relocaation truncated ?
  2001-01-09  1:26 [ECOS] relocaation truncated ? jacky
@ 2001-01-09 10:24 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-01-09 10:24 UTC (permalink / raw)
  To: jacky; +Cc: ecos-discuss

jacky wrote:
> 
> Hi all;
> 
>     I am porting viewml to ecos,but I meet a problem, can someone do me a
> favor to tell me how to solve this. THe following is the error messages:
> 
>  html.o:/home/root/myprojects/mips_for/viewml-0.15/src/g++/stl_alloc.h
>           :473: relocation truncated to fit: R_MIPS_GPREL16
>           __default_alloc_template<false, 0>::start_free
> 
> What is the meaning of R_MIPS_GPREEL16, what will cause this kind of
> error?  Thank you!

Sometimes you see this simply when the symbol isn't found, and another line
of the error message should also help indicate this.

Otherwise it can mean that a 16-bit GP relative relocation was not large
enough to contain the relocation actually needed. This type of thing
happens when two modules access the same symbol, but do so in a different
way, e.g.

int myarray[1];

in one module, which actually is:

int myarray[10];

in a different module. Anything using the first prototype would be given a
smaller relocation than in the latter case.

In other words, it can happen when two modules have two different types for
the same "thing".

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Un cheval, pas du glue. Pas du cheval, beaucoup du glue. || Opinions==mine

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

end of thread, other threads:[~2001-01-09 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-09  1:26 [ECOS] relocaation truncated ? jacky
2001-01-09 10:24 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).