MIPS Assembly.
Chris Jones
cjones@sutus.com
Mon Jun 21 18:36:00 GMT 2004
On Mon, Jun 21, 2004 at 06:46:30PM +0200, Thiemo Seufer wrote:
> Chris Jones wrote:
> [snip]
> > 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.
>
> A jump to a (unnamed) local symbol is implemented as a branch.
>
> > This compiles fine on x86, but does NOT on mips32 or cross-compiled for
> > mips32.
>
> I doubt mips inline assembly compiles fine on x86. ;-)
I stand corrected. I am certain that inline assembly would NOT compile on
x86. ;)
However, the asm-link changes when building on x86 to use x86 assembly. :)
Worth noting however is that it appears that these routines were
rewritten by Linus adn put in /arch/i386/lib sometime in 1998. I guess
the mips people are a few years behind the times?
> This most likely needs a fix in the mips kernel, which is hosted at
> www.linux-mips.org.
Yup. I will make a post here. Thanks for your help Thiemo.
Cheers,
-=cj
--
Chris Jones | Software Developer | Sutus, Inc.
t: +1.604.987.8866 x 2204 | e: cjones@sutus.com
More information about the Binutils
mailing list