Andes Workshop

It is currently Tue Sep 26, 2017 11:48 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: the message "unsupported relocation type 0"
PostPosted: Thu Apr 28, 2011 5:38 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Q:We found the message "unsupported relocation type 0" appears when
we load Linux kernel module which includes rwlock_init().
How can we solve this issue?

A: 有2種可能性
(1)出現這個message通常是編譯driver所使用的toolchain,和
編譯kernel所使用的toolchain版本不一致。要改用同一個版本的toolchain來編譯。

(2)當您寫shared library時,裡面有一些code非pic(Position Independent Code),
解決的方法是編譯程式的時候,在gcc後面要加-fpic選項。


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 1 guest


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