[PATCH] D82366: [yaml2obj] - Support reading a content as an array of bytes using the new 'ContentArray' key.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 04:45:09 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: hiraditya, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

It implements the way to describe a section content using a multi line description. E.g:

  - Name:         .foo
    Type:         SHT_PROGBITS
    ContentArray: [ 0x11, 0x22, 0x33, 0x44,                                ## .long 11223344
                    0x55, 0x66,                                            ## .short 5566.
                    0x77,                                                  ## .byte 0x77
                    0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x00 ] ## .quad 0x8899aabbccddeeff

It was briefly discussed in D75123 <https://reviews.llvm.org/D75123> thread previously.


https://reviews.llvm.org/D82366

Files:
  llvm/include/llvm/ObjectYAML/ELFYAML.h
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/tools/yaml2obj/ELF/content-array.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82366.272675.patch
Type: text/x-patch
Size: 4891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200623/d259a332/attachment-0001.bin>


More information about the llvm-commits mailing list