Hi,

I'm using a linux-i386 -> linux-m68k crosscompiler setup and found a
problem with binutils-2.9.5.0.7. The following example should show
the problem:

        .global abc,def

start:
        bras    abc
        .rept   64
        nop
        .endr
abc:
        nop

        bras    def
        nop
def:
        nop


The assembler doesn't complain about the first illegal jump, but about the
second legal one. If I remove the .global line it works.
There is a second (maybe related) problem. The assemble doesn't optimize
anymore short jumps to global labels. The following source produces two
different jump instructions:

        .global abc
        jra     abc
        nop
abc:    jra     def
        nop
def:

Both problems are not binutils 2.9.1.

bye, Roman

Reply via email to