[PATCH] D60042: [llvm-objcopy] Add --prefix-alloc-sections

Seiya Nuta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 19:00:52 PDT 2019


seiya updated this revision to Diff 196167.
seiya added a comment.

- Use `dyn_cast`
- Add `PrefixedSections` to check whether the target section is already prefixed `AllocSectionsPrefix`.
- Handle the case when `--rename-section` and `--prefix-alloc-sections` are given and the relocation section comes //before// its target section.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60042/new/

https://reviews.llvm.org/D60042

Files:
  llvm/test/tools/llvm-objcopy/ELF/prefix-alloc-sections.test
  llvm/test/tools/llvm-objcopy/ELF/rename-section-and-prefix-alloc-sections.test
  llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
  llvm/tools/llvm-objcopy/CopyConfig.cpp
  llvm/tools/llvm-objcopy/CopyConfig.h
  llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  llvm/tools/llvm-objcopy/ObjcopyOpts.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60042.196167.patch
Type: text/x-patch
Size: 10207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190423/8997abcb/attachment.bin>


More information about the llvm-commits mailing list