[PATCH] D11612: [lld][ELF2] Apply relocations.

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 20:42:27 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.
>

I think you are pretty much alone in terms of people who find the assembly
easier to understand. 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.

I personally have have a very hard time understanding your assembly test
cases; I think Michael does too. I think most people would since they don't
really have any assembly content; they are basically a soup of gas
directives. Judging by the complete absence of assembly in test/COFF, I
assume Rui also prefers something tied directly to the object format,
rather than something digested by the assembler.

@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/e5892705/attachment.html>


More information about the llvm-commits mailing list