This is the mail archive of the binutils@sourceware.org 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: gas, x86-64, Linux vs. FreeBSD/OpenSolaris


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.


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