gas, x86-64, Linux vs. FreeBSD/OpenSolaris

H.J. Lu hjl.tools@gmail.com
Fri Jan 30 22:39:00 GMT 2009


On Fri, Jan 30, 2009 at 2:26 PM, Bob Plantz <plantz@cds1.net> wrote:
> I am working on x86-64 in 64-bit mode. I'm using gas.
>
> In Linux I can dereference a 32-bit register as shown on the second line
> below "whileLoop" in the code below. But when I try to assemble it under
> OpenSolaris or FreeBSD (also in 64-bit mode), I have to use the full
> 64-bit register.
>
> The error message comes from gas. So it's clear that gas has been built
> differently for Linux than for the other two systems. Can anyone help me
> understand (a) how this is done, and (b) why it is done?
>

Your FreeBSD binutils may be too old.  You can use

# ld -V

to compare the binutils version.


-- 
H.J.



More information about the Binutils mailing list