[RFC] imgrel/imagerel operator from the clang integrated assembler and the Microsoft assembler
Julian Waters
tanksherman27@gmail.com
Fri Nov 8 08:53:15 GMT 2024
Hi all,
There are times where it is needed to have the functionality of the
.rva directive as an operator on an expression. Take the following
handwritten assembly from the Java Short Vector Math Library:
vmovupd xmm4, XMMWORD PTR
[imagerel(__jsvml_dtanh_ha_data_internal)+2704+rdx+rcx]
In this instance, .rva obviously cannot be used to obtain the virtual
address of the symbol for use in an instruction. Does GAS have any
undocumented specifier that can obtain the image relative offset of an
expression? If it does not, could we consider adding the @imgrel
operator from clang for this purpose?
best regards,
Julian
More information about the Binutils
mailing list