This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: [x86]: Allow @GOTOFF in non-memory context?


Uros Bizjak <ubizjak@gmail.com> writes:

> I'm investigating, which "current assemblers" are broken, since my
> assembler from binutils-2.20 happily assembles:
>
> addl x@GOTOFF(%ebx), %eax
>
> in 32bit mode, as well as
>
> addq x@GOTPCREL(%rip), %rax
>
> in 64bit mode.
>
> Looking into gcc install documentation, the lowest mentioned version
> is 2.13.1. I have no idea, if this version supports above asm, so I
> would like to ask someone with  access to this ancient version if he
> can test this instruction.
>
> Also of interest is support from sun as and darwin assembler for
> similar instructions. I guess darwin should check something like:
>
> addl	L_x$non_lazy_ptr-L00000000001$pb(%ecx), %eax
>
> Ultimately, I would like to remove checks involving
> pic_symbolic_operands, but removing them on 64bit would be OK, too.

Sun as from Solaris 8 onward (32-bit case) resp. Solaris 10 onward
(64-bit case) handle those two cases identically to gas 2.15/2.10.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


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