[PATCH] D42516: [llvm-objcopy] Add support for large indexes
Jake Ehrlich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 18:32:15 PST 2018
jakehehrlich created this revision.
jakehehrlich added reviewers: jhenderson, mcgrathr.
Because of -ffunction-sections (and maybe other use cases I'm not aware of?) it can occur that we need more than 0xfeff sections but ELF dosn't support that many sections. To solve this problem SHN_XINDEX exists and with it come a whole host of changes for section indexes everywhere. This change adds support for those cases which should allow llvm-objcopy to copy binaries that have an arbitrary number of sections.
Repository:
rL LLVM
https://reviews.llvm.org/D42516
Files:
tools/llvm-objcopy/Object.cpp
tools/llvm-objcopy/Object.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42516.131382.patch
Type: text/x-patch
Size: 13097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180125/ce90f80b/attachment.bin>
More information about the llvm-commits
mailing list