[PATCH] D76575: [LLD][ELF][ARM] Replace assembler files with yaml

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 24 20:15:04 PDT 2020


MaskRay added a comment.

In D76575#1938715 <https://reviews.llvm.org/D76575#1938715>, @psmith wrote:

> Thanks for the comments, I'll do my best to trim down the yaml and resubmit tomorrow.


Wait. Sorry that I only recalled the `.reloc` directive after you had started to work on yaml2obj tests. In an assembly test, a `.section` directive corresponds to several lines in a YAML. A symbol requires one or two lines in an assembly while it may require up to 5 lines in a YAML.

I created D76746 <https://reviews.llvm.org/D76746> to generalize `.reloc`. With this patch, we can probably write:

  .globl bar
  bar:
  adr r0, bar; .reloc 0, R_ARM_ALU_PC_G0, bar


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

https://reviews.llvm.org/D76575





More information about the llvm-commits mailing list