All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Instructions in TEXT section can not load data from other section
@ 2010-03-16  8:37 jrjr
  2010-03-16  8:50 ` Joakim Tjernlund
  0 siblings, 1 reply; 9+ messages in thread
From: jrjr @ 2010-03-16  8:37 UTC (permalink / raw)
  To: u-boot



Hi, everyone. 

 I have got a problem when I porting U-BOOT to my board

with MPC8247. My configuration file is based on the MPC8260ADS_config.

The problem is : The instruction in TEXT section can not load data in

other (DATA) sections. It seems there is a relocation to the data section .  

For example:   If I use

    for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
        if ((*init_fnc_ptr) () != 0) {
            hang ();
        }
    }  

I can't jump to functions in  init_sequence[]  ;

If I called functions such as    get_clocks()  in board_init_f  , it works fine.

So the code in board_init_f can not load address in init_sequence[] , because

init_sequence[]  is out of TEXT section.   

The same thing happens with iop_conf_tab[][], and strings used by "puts".  

Anyone there has the same problem? Or know the point? Pls help!  

Great Great Thanks !  
-----------------------------------------------------------
-JRJR

 		 	   		  
_________________________________________________________________
SkyDrive????????????????????????!
http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c

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

end of thread, other threads:[~2010-03-17 17:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-16  8:37 [U-Boot] Instructions in TEXT section can not load data from other section jrjr
2010-03-16  8:50 ` Joakim Tjernlund
2010-03-17  6:28   ` jrjr
     [not found]     ` <OFDDD6C953.292271B8-ONC12576E9.0026AC5F-C12576E9.0026F24C@transmode.se>
2010-03-17  8:18       ` jrjr
2010-03-17  8:45       ` jrjr
2010-03-17  8:48         ` Joakim Tjernlund
2010-03-17  9:49           ` jrjr
2010-03-17  9:56             ` Joakim Tjernlund
2010-03-17 17:47             ` Scott Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.