[PATCH] D42872: Fix handling of zero-size segments in llvm-objcopy
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 11:29:55 PST 2018
ruiu added a comment.
Ignoring sections with virtual memory size 0 and file size 0 is perhaps safe, but I wonder if we need to rely on the heuristics. There are only a few segment types that are used for "markers". Namely, you can ignore just PT_GNU_STACK and PT_OPENBSD_WXNEEDED. It seems to me that it's easier to understand than checking the segment size.
Repository:
rL LLVM
https://reviews.llvm.org/D42872
More information about the llvm-commits
mailing list