> Roland McGrath <roland@frob.com> writes:
>
> > Have you tried it?
>
> Yes, I did. And for my test case I got something like
>
> movl $%gs:0, %eax
> movl 4(%eax), %eax
Ah, yes. That is what you will get for:
extern struct foo seg asm("%gs:0");
... = &seg;