[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] Linking problems



  Hi:

   The problem is the function called __stdio_close_all. It was located 
in the 0x0 position. When I use the or32-uclinux-readelf -a I can see in 
one line:

 Value         Size  Type      Bind    Vis          Ndx  Name    
 00000000      0  NOTYPE  WEAK DEFAULT  UND  ___stdio_close_all

How can I solve this?

Thanks

----- Original Message ----- 
From: javier_castillo_villar@y...  
To: openrisc@o...  
Date: Wed, 13 Nov 2002 16:10:56 -0100 
Subject: [openrisc] Linking problems 

> 
> 
> 
>   Hello: 
> 
>     Iīve been linking programs against ukerner included in the 
> testbench directory of or1ksim. 
>    When I compile a program using float operations I send the ctors 
> and dtors sections to RAM memory using the default.ld script. But 
> when I try to run my program in the simulator I found this in the 
> 0x0 
> position: 
> 
> i=0 :: label: ___stdio_close_all |9c21fffc l.addi r1,r1,-4 
> i=4 :: d4014800 l.sw 0x0(r1),r9 
> .... 
> .... 
> .... 
> i=2c :: 9c210004 l.addi r1,r1,0x4 
> 
> 
> Because of this my reset vectors begins in 0x1300 instead of 0x100. 
> I think I should modify the default.ld script but I donīt know how 
> 
> Thanks 
> 
--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml