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]

Re: BE Cross compiler for ARM-XSCALE


I am able to build the cross compiler using the ptxdist tool.

"
ptxdist-0.10.6 select
ptxconfigs/armeb-xscale-linux-gnueabi_gcc-4.1.2_glibc-2.5_linux-2.6.18.ptxconfig
- ptxdist-0.10.6 go
"

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.


Best Regards
Philip

From: Robert Schwebel <r.schwebel@pengutronix.de>
To: Philip mathew <philipmat@hotmail.com>
CC: mkl@pengutronix.de, crossgcc@sourceware.org
Subject: Re: BE Cross compiler for ARM-XSCALE
Date: Mon, 16 Jul 2007 20:53:49 +0200

On Mon, Jul 16, 2007 at 04:41:55PM +0000, Philip mathew wrote:
> I did  extract the OSELAS toolchain and the patches and projects for
> "ptxdist-0.10.6". But when I run "./configure && make && make
> install", the binary generated in the bin directory is "bin/ptxdist"
> not  "bin/ptxdist-0.10.6"

That's correct; if you didn't change the --prefix, ptxdist installs
"ptxdist-0.10.6" into /usr/local/bin and sets a link "ptxdist" which
points to that location.

Robert
--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9


_________________________________________________________________ http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07


-- 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]