[PATCH] D113220: [X86] Selective relocation relaxation for +tagged-globals

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 10 14:59:56 PST 2021


pcc added a comment.

In D113220#3122916 <https://reviews.llvm.org/D113220#3122916>, @morehouse wrote:

> In D113220#3122771 <https://reviews.llvm.org/D113220#3122771>, @pcc wrote:
>
>> I think it ought to be possible to write these non-relaxable relocations from assembly, so that the behavior with `-c` is equivalent to the behavior with `-S` and then assembling the output. For example, you should be able to assemble
>>
>>   mov foo at gotpcrel_norelax(%rip), %rax
>>
>> and the `-S` output from the compiler should look like that as well.
>
> Won't this cause incompatibility with all other assemblers?

We are not required to remain compatible with other assemblers in our assembly output unless `-no-integrated-as` is specified, but any extensions should be documented here: https://llvm.org/docs/Extensions.html

Indeed, LLVM will use a number of its own extensions by default in its assembly output, e.g. `.addrsig`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113220/new/

https://reviews.llvm.org/D113220



More information about the llvm-commits mailing list