[PATCH] D58116: [llvm-objcopy] Improve section removal
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 12 06:06:18 PST 2019
evgeny777 created this revision.
evgeny777 added reviewers: jhenderson, rupprecht.
Herald added subscribers: jdoerfert, jakehehrlich, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
This patch changes segment size, when last section is removed from the file. Segment also can be removed completely when it doesn't contain section (such behavior differs from GNU objcopy which leaves empty segment with warning).
This patch changes way section and segment layout is calculated and is a base for `--update-section`, `--pad-to` and few other options.
https://reviews.llvm.org/D58116
Files:
test/tools/llvm-objcopy/ELF/fixup-segment.test
tools/llvm-objcopy/ELF/Object.cpp
tools/llvm-objcopy/ELF/Object.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58116.186444.patch
Type: text/x-patch
Size: 10891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190212/6dcf0153/attachment.bin>
More information about the llvm-commits
mailing list