diff options
author | Leonard Chan <leonardchan@google.com> | 2021-10-20 13:03:49 -0700 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2021-11-16 14:10:40 -0800 |
commit | 25bcd94234530955c58c6530a9271c813827637c (patch) | |
tree | cc98771ab9e1d79ef5b8d81cca89cf5c406a07fc /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 4c2cf3a314d9131b1b288e7c8ab0c75ac1b2be1d (diff) | |
download | llvm-25bcd94234530955c58c6530a9271c813827637c.zip llvm-25bcd94234530955c58c6530a9271c813827637c.tar.gz llvm-25bcd94234530955c58c6530a9271c813827637c.tar.bz2 |
[llvm-objcopy] Add --update-section
This is another attempt at D59351 which attempted to add --update-section, but
with some heuristics for adjusting segment/section offsets/sizes in the event
the data copied into the section is larger than the original size of the section.
We are opting to not support this case. GNU's objcopy was able to do this because
the linker and objcopy are tightly coupled enough that segment reformatting was
simpler. This is not the case with llvm-objcopy and lld where they like to be separated.
This will attempt to copy data into the section without changing any other
properties of the parent segment (if the section is part of one).
Differential Revision: https://reviews.llvm.org/D112116
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
0 files changed, 0 insertions, 0 deletions