[PATCH] D58625: [llvm-objcopy] - Check for invalidated relocations when removing a section.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 25 07:39:31 PST 2019


grimar created this revision.
grimar added reviewers: jhenderson, rupprecht, jakehehrlich, alexshap.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.

This is https://bugs.llvm.org/show_bug.cgi?id=40818

Removing a section that is used by relocation is an error
we did not report. The patch fixes that.


https://reviews.llvm.org/D58625

Files:
  test/tools/llvm-objcopy/ELF/strip-section-err.test
  tools/llvm-objcopy/ELF/Object.cpp
  tools/llvm-objcopy/ELF/Object.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58625.188174.patch
Type: text/x-patch
Size: 5003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190225/f5d1ce8b/attachment.bin>


More information about the llvm-commits mailing list