[RFC] imgrel/imagerel operator from the clang integrated assembler and the Microsoft assembler
Julian Waters
tanksherman27@gmail.com
Tue Nov 12 08:24:49 GMT 2024
My mistake, I just checked and it is indeed not human written, but instead
was the output of the Intel C Compiler. The source code that the assembly
came from is proprietary and involves Intel C extensions, and so is not
accessible to anyone outside of Intel (Which unfortunately includes me). I
don't know the right people to talk to at Intel to get them to regenerate
the assembly for GAS targeting Windows COFF. Now that I see it, it
certainly is odd that imagerel is being used inside an instruction only to
be added to __ImageBase later on (The uses of imagerel elsewhere can be
replaced with .rva so aren't a concern). I'll try to ask why this is the
case, but no guarantees that I'll ever get a reply
To clarify about the .reloc example, I was wondering whether it relied on
the current location that is being assembled into. The . means the current
address in the assembler, no? If it does, then the offset that should
be subtracted from . as in the example may differ depending on the
instruction
best regards,
Julian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20241112/d1ad32f2/attachment.htm>
More information about the Binutils
mailing list