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

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 22 15:01:39 PDT 2020


psmith created this revision.
psmith added reviewers: MaskRay, ruiu, grimar.
Herald added subscribers: danielkiss, kristof.beyls, emaste.
Herald added a reviewer: espindola.

In the near future llvm-mc will resolve the fixups that generate R_ARM_THUMB_PC8 and R_ARM_THUMB_PC12 at assembly time (see comments in D72892 <https://reviews.llvm.org/D72892>), and forbid inter-section references. Change the LLD tests for these relocations to use yaml2obj to avoid LLD tests failing when this happens. The tests generate the same instructions, relocations and symbols, and have been edited from obj2yaml.

I will need to make equivalent changes for D75349 <https://reviews.llvm.org/D75349> Arm equivalent relocations, but this is still in review so these don't need changing before llvm-mc.


https://reviews.llvm.org/D76575

Files:
  lld/test/ELF/arm-thumb-adr-err.s
  lld/test/ELF/arm-thumb-adr-err.test
  lld/test/ELF/arm-thumb-adr.s
  lld/test/ELF/arm-thumb-adr.test
  lld/test/ELF/arm-thumb-ldrlit-err.s
  lld/test/ELF/arm-thumb-ldrlit-err.test
  lld/test/ELF/arm-thumb-ldrlit.s
  lld/test/ELF/arm-thumb-ldrlit.test
  lld/test/ELF/arm-thumb2-adr-err.s
  lld/test/ELF/arm-thumb2-adr-err.test
  lld/test/ELF/arm-thumb2-adr.s
  lld/test/ELF/arm-thumb2-adr.test
  lld/test/ELF/arm-thumb2-ldrlit-err.s
  lld/test/ELF/arm-thumb2-ldrlit-err.test
  lld/test/ELF/arm-thumb2-ldrlit.s
  lld/test/ELF/arm-thumb2-ldrlit.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76575.251918.patch
Type: text/x-patch
Size: 55837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200322/3d4e2c0f/attachment.bin>


More information about the llvm-commits mailing list