[PATCH] D34758: [YAML] - Teach yaml2obj/obj2yaml to work with numeric relocation values.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 08:57:34 PDT 2017


grimar created this revision.

That may be useful if we want to produce object containing broken relocation values 
using yaml2obj.

Previously that was impossible because only enum values were parsed correctly, this patch 
allows to put any numeric value as a relocation type.

We already use precompiled binary to check broken relocation handling in LLD, and today I faced
again that need a way to produce a object with different broken relocations for another patch.
I think yaml2obj should be able to do that out of box. Patch implements the support.

Sorry, not sure about how much list of reviewers is appropriate, it seems many people
worked on yaml relative things.


https://reviews.llvm.org/D34758

Files:
  include/llvm/Support/YAMLTraits.h
  lib/ObjectYAML/ELFYAML.cpp
  test/Object/X86/yaml-elf-x86-rel-broken.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34758.104432.patch
Type: text/x-patch
Size: 3887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170628/aa44231c/attachment.bin>


More information about the llvm-commits mailing list