Andes Workshop
http://forum.andestech.com/

the message "unsupported relocation type 0"
http://forum.andestech.com/viewtopic.php?f=10&t=67
Page 1 of 1

Author:  cindy [ Thu Apr 28, 2011 5:38 pm ]
Post subject:  the message "unsupported relocation type 0"

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選項。

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/