This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS Assembly.
Maciej;
On Tue, Jun 22, 2004 at 10:41:11PM +0200, Maciej W. Rozycki wrote:
> This is a FAQ...
>
> Your GCC command options are wrong -- you need to make sure options used
> for your module match ones used by the kernel build system for modules.
> For MIPS/Linux, you want to include at least these: "-G 0 -mno-abicalls
> -fno-pic", or better yet, merge your module with the Linux tree.
This works beautifully. I believe I had tried the "-fno-pic" before,
but not with -G 0 or -mno-abicalls.
Thanks so much.
-=cj
>
> Since you currently build your module as PIC, it's no surprise gas has
> troubles handling the jump instruction here.
>
--
Chris Jones | Software Developer | Sutus, Inc.
t: +1.604.987.8866 x 2204 | e: cjones@sutus.com