On Tue, Jun 8, 2021 at 5:46 PM Uros Bizjak wrote:
>
> Using %p to move the address of a symbol using LEA:
>
> asm ("lea %p1, %0" : "=r"(addr) : "m"(var));
>
> emits assembler warning when VAR is declared in a non-generic address space:
>
> Warning: segment override on `lea' is ineffectual
>
>
Using %p to move the address of a symbol using LEA:
asm ("lea %p1, %0" : "=r"(addr) : "m"(var));
emits assembler warning when VAR is declared in a non-generic address space:
Warning: segment override on `lea' is ineffectual
The problem is with %p operand modifier, which should emit raw symb