diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2019-11-01 15:24:58 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2019-11-11 11:48:23 +0300 |
commit | 06456daa9e59ffddc634e4f1aa592161653fbd36 (patch) | |
tree | ef5215d4fe03c131918ad84b85cbd7f8b5d5cd13 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | b4f46a9bb42972e663f8b7b4d15e4c8ed3fecef4 (diff) | |
download | bcm5719-llvm-06456daa9e59ffddc634e4f1aa592161653fbd36.tar.gz bcm5719-llvm-06456daa9e59ffddc634e4f1aa592161653fbd36.zip |
[yaml2obj] - Add a way to describe the custom data that is not part of an output section.
Currently there is no way to describe the data that is not a part of an output section.
It can be a data used to align sections or to fill the gaps with something,
or another kind of custom data. In this patch I suggest a way to describe it. It looks like that:
```
Sections:
- Type: CustomFiller
Pattern: "CCDD"
Size: 4
- Name: .bar
Type: SHT_PROGBITS
Content: "FF"
```
I.e. I've added a kind of synthetic section with a synthetic type "CustomFiller".
In the code it is called a "SyntheticFiller", which is "a synthetic section which
might be used to write the custom data around regular output sections. It does
not present in the sections header table, but it might affect the output file size and
program headers produced. Think about it as about piece of data."
`SyntheticFiller` currently has a `Pattern` field and a `Size` field + an optional `Name`.
When written, `Size` of bytes in the output will be filled with a `Pattern`.
It is possible to reference a named filler it by name from the program headers description,
just like any other normal section.
Differential revision: https://reviews.llvm.org/D69709
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions