bug-gnu-utils
[Top][All Lists]
Advanced

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

Need help with as problem


From: John & Margaret Strowe
Subject: Need help with as problem
Date: Wed, 28 Feb 2001 02:14:20 GMT

-----BEGIN PGP SIGNED MESSAGE-----

I am trying to port some assembly code to the as assembler for the
Coldfire processor (a 68000 derivitive). If I have some variables
defined in the .data section and then have more than 32K of code in
the .text section, it will not let me access the variables using a
word address. I will be having the linker put the .data section in
memory starting at address zero which will be perfectly legal to
access with a word address. However, the assembler is making some
assumptions that result in errors.

My file that I am assembling is:

        .section .bss
label:
        .space 4
        .text
        .space  0x8000
        move.l  (label).w,%d0

When I assemble it, I get this error:

test.s: Assembler messages:
test.s:8: Error: Signed .word overflow; switch may be too large;
32772 at 0x8002

Does anyone know how to get around this problem besides taking away
all the .w modifiers on the addresses?

Thanks,
John


-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQCVAwUBOpxbhILLgRU96jMdAQGP2wQAinei83bsoi069ivpFSFIQBVtWMkHoK2N
o8AGpa59BvPo6/X7kU4VCjnXu7q/9yiAF1Rc0IZeRWGaEmlB11+9ygha+1rm73kq
bOYorWHUXQSMHEud0Oga3nXeAeF2hRQYsd69pvHzve6lg4QZLKtx+KcdsXEXghpY
aPrL4KBaoRw=
=2uEf
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]