This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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: MIPS Assembly.


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. ;-)

> If you have any ideas, I would love to hear them.

This most likely needs a fix in the mips kernel, which is hosted at
www.linux-mips.org.


Thiemo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]