aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-04-27 11:46:49 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-05-15 11:23:44 +0300
commit7ccae2cece72153d2c8210ef916bf0052da216ad (patch)
tree73dedef9e2e0ed3c2d454c91965060e252d62a82 /llvm/tools/llvm-readobj/llvm-readobj.cpp
parent7fc5f28068d3c9563cbf5b4e5b92b5cfc8958698 (diff)
downloadllvm-7ccae2cece72153d2c8210ef916bf0052da216ad.zip
llvm-7ccae2cece72153d2c8210ef916bf0052da216ad.tar.gz
llvm-7ccae2cece72153d2c8210ef916bf0052da216ad.tar.bz2
[yaml2obj] - Introduce the "Offset" property for sections.
Currently there is no good way to set a physical offset for a section: * We have the `ShOffset` that allows to override the `sh_offset`, but it does not affect the real data written. * We can use a `Filler` to create an artificial gap, but it is more like a hack rather than a proper solution for this problem. This patch adds the `Offset` property which allows setting physical offsets for sections. It also generalizes the code, so that we set sh_offset field in one place Differential revision: https://reviews.llvm.org/D78927
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions