This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Tuesday 24 July 2007 05:34, Philip mathew wrote:
> I am able to build the cross compiler using the ptxdist tool.
>
> "
> ptxdist-0.10.6 select
> ptxconfigs/armeb-xscale-lin
ux-gnueabi_gcc-4.1.2_glibc-2.5_linux-2.6.18.ptxc
>onfig - ptxdist-0.10.6 go
> "
Why it failed in the past? (maybe to improve our documentation)
> For testing the compiler, I created the following test driver code with
> the cross compiler.
>
> #define MODULE
> #include<asm/module.h>
> int init_module(void) { printk("<1>Hello world \n"); return 0;}
> int cleanup_module(void) { printk("<1>Good bye \n"); return 0;}
>
> When I tried to load this in the target platform (XSCALE), (ie insmod
> testdrv.o) I am getting
> the following errors in the target.
>
> "
> Warning: unhandled reloc 28
> insmod: Unhandled relocation of type 28 for printk
> Warning: unhandled reloc 28
> insmod: Unhandled relocation of type 28 for printk
> "
>
> 1) Can some one explain the cause of this errors.
>
> 2) If I use #include <linux/module.h> instead of <asm/module.h>
> compilation fails and lot of
> compilation errors appears.
How did you build this driver? As an external module against the built
sourcetree of your running cross kernel?
Juergen
--
Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
?Pengutronix - Linux Solutions for Science and Industry
? Handelsregister: Amtsgericht Hildesheim, HRA 2686
? ? ? Vertretung Sued/Muenchen, Germany
Phone: +49-8766-939 228 | Fax: +49-5121-206917-9
--
For unsubscribe information see http://sourceware.org/lists.html#faq
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |