This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
MIPS Assembly.
- From: Chris Jones <cjones at sutus dot com>
- To: binutils at sources dot redhat dot com
- Cc: cgd at broadcom dot com
- Date: Mon, 21 Jun 2004 09:26:09 -0700
- Subject: MIPS Assembly.
Hello;
(Chris I've CC'd you because it was recommended on another mailing list
that I contact you since you've posted similar things a few years ago
regarding PIC and no-PIC)
I have been having some trouble compiling a kernel module for a 2.4.25
kernel. I am having problems in specific with <asm-mips/uaccess.h>
The functions in question are:
get_user(j,(int *)data);
and
put_user(chan->blocksize,(int *)data);
Both of these function inturn have inline assembly which the
assembler/compiler complain loudly about.
The offending lines are
uaccess:245 and
uaccess:336 respectively.
A JUMP instruction:
j 2b
This is what the compiler/assembler is complaining about:
/tmp/ccGn3TTn.s: Assembler messages:
/tmp/ccGn3TTn.s:7766: Error: Cannot branch to symbol in another section.
/tmp/ccGn3TTn.s:7817: Error: Cannot branch to symbol in another section.
This compiles fine on x86, but does NOT on mips32 or cross-compiled for
mips32.
If you have any ideas, I would love to hear them.
Thanks for your time.
-=chris
--
Chris Jones | Software Developer | Sutus, Inc.
t: +1.604.987.8866 x 2204 | e: cjones@sutus.com