[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[oc] problems with the assembler




Hi!

I have found some problems with the assembler (GNU as). It
can't handle immediate values for the lo() and hi() options
to "l.immlo16u" and "l.immhi16u".

When assembling the following line,

  l.immlo16u  a0, lo(0xaa55aa55)

the assembler generates the following error;

/home/johryd/k.S: Assembler messages:
/home/johryd/k.S:1: Error: can't resolve value for symbol "L0`" (1)

Debugging information:

md_undefined_symbol(a0)
    r: operand->X_op = 5
md_undefined_symbol(lo)
reloc_const
    default case: operand->X_op = 2, *args = lo(I), *s = (0xaa55aa55)
    reloc const=3
    default case: operand->X_op = 2, *args = o(I), *s = (0xaa55aa55)
    reloc const=3
    default case: operand->X_op = 2, *args = I), *s = 
    reloc const=3
md_apply_fix val:0
tc_coff_fix2rtype

First the assembler did complain about that the absoule value was to
big, but that was easily fixed (it did just support 17-bit absolute
values).

It seems that it tries to relocate the absolute value (which can't
really be done :)).

-- 
Johan Rydberg			johan.rydberg@netinsight.net
Net Insight AB, Sweden		direct: +46-8-685 04 17
http://www.netinsight.net	phone:  +46-8-685 04 00
				fax:    +46-8-685 04 20