Andes Workshop

It is currently Fri Mar 29, 2024 2:38 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: error message: R_NDS32_25_PCREL_RELA against symbol `_start
PostPosted: Tue Jan 21, 2014 2:44 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
The error message:

relocation truncated to fit: R_NDS32_25_PCREL_RELA against symbol `_start' defined in .text section in ./platform/crt0.o

Root cause:
The first line in crt0.S is j _start
The instruction j only can jump +/- 16MB
The label _start is too far to jump into.

Solution:
Code:
j MY_Start

MY_Start:
    movi $r0,0
    jral $r0


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group