[PATCH] D11612: [lld][ELF2] Apply relocations.
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 20:38:26 PDT 2015
On Thu, Aug 13, 2015 at 6:03 PM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> >> llvm-mc
> > This is testing explicit relocations. Assembly doesn't represent
> specific relocations, and it's not obvious what gets generated.
>
> This test is using a valid file that can be created with assembly.
> YAML is an unnecessary LLVM only invention here. Use assembly.
>
The YAML format may be an LLVM-only invention, but R_X86_64_PC32, SHT_RELA,
etc. are not. Anybody that understands the input format of the linker will
reasonably understand what is in the YAML file just based on those
waypoints. The same is not true for assembly (or rather, "gas directives").
I personally have have a very hard time understanding your assembly test
cases; I think Michael does too. I think most people would have a hard time
since they don't really have any "assembly" content; they are basically a
soup of "gas directives". It's not "assembly" vs. "YAML"; it's "gas
directives (with whatever LLVM extensions)" vs "YAML". Judging by the
complete absence of assembly in test/COFF, I assume Rui also prefers
something tied directly to the object format.
@Rui, as the code owner here, do you think we should stick with YAML for
the relocation tests?
-- Sean Silva
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150813/f160ff67/attachment.html>
More information about the llvm-commits
mailing list