This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: x86 mov to/from segment registers
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Josh Vanderhoof <josh dot vanderhoof at verizon dot net>
- Cc: binutils at sourceware dot org
- Date: Mon, 5 Dec 2005 17:34:58 -0800
- Subject: Re: x86 mov to/from segment registers
- References: <m34q65zf0y.fsf@verizon.net>
On Mon, Nov 21, 2005 at 07:45:33PM -0500, Josh Vanderhoof wrote:
> It has just been brought to my attention that something I wrote
> (sf.net/projects/lrmi) is not compiling on Fedora Core development
> (gcc 4.0.2, binutils 2.16.91.0.3). The problem is with inline asms
> like this:
>
> asm volatile ("movl %%gs, %0" : "=rm" (old_gs));
> asm volatile ("movl %0, %%gs" :: "rm" (old_gs));
>
> Apparently changing the "movl" to "mov" makes it compile. What is the
> correct way to get a segment register move without a size prefix?
Read the current Linux binutils release note at
http://www.kernel.org/pub/linux/devel/binutils/
H.J.