[PATCH] D69709: [yaml2obj][WIP] - Add a way to describe the custom data that is not part of an output section.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 06:54:00 PDT 2019


grimar added a comment.

In D69709#1730081 <https://reviews.llvm.org/D69709#1730081>, @jhenderson wrote:

> I assume the optional Name is to allow them to be referenced by program headers?


Right.

> I wonder if we need to have some way of controlling their offset.

Yeah. For initial patch I decided to start from a reasonable minimum, but this approach is expandable and
I've thought about something like "FillUpToOffset" field.
Then we could have:

  Sections:
     - Type: CustomFiller
       Pattern: "00"
       FillUpToOffset:    0x100
     - Name: .text
       Type: SHT_PROGBITS
       Address: 0x100

It would then create `.text` at offset 0x100 with VA = 0x100.


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

https://reviews.llvm.org/D69709





More information about the llvm-commits mailing list