llvm-project/llvm/tools/llvm-objcopy
Jordan Rupprecht c892741e74 [llvm-objcopy] Implement --set-section-flags.
Summary:
--set-section-flags is used to change the section flags (e.g. SHF_ALLOC) for given sections. The flags allowed are the same from the existing --rename-section=.old=.new[,flags] feature.

Additionally, make sure that --set-section-flag cannot be used with --rename-section (either the source or destination), since --rename-section accepts flags. This avoids ambiguity for something like "--rename-section=.foo=.bar,alloc --set-section-flag=.bar,code".

Reviewers: jhenderson, jakehehrlich, alexshap, espindola

Reviewed By: jhenderson, jakehehrlich

Subscribers: llvm-commits, emaste, arichardson

Differential Revision: https://reviews.llvm.org/D57198

llvm-svn: 352505
2019-01-29 15:05:38 +00:00
..
COFF [llvm-objcopy] Implement --set-section-flags. 2019-01-29 15:05:38 +00:00
ELF [llvm-objcopy] Implement --set-section-flags. 2019-01-29 15:05:38 +00:00
Buffer.cpp [llvm-objcopy] Fix crash when writing empty binary output 2019-01-28 15:02:40 +00:00
Buffer.h [llvm-objcopy] Fix crash when writing empty binary output 2019-01-28 15:02:40 +00:00
CMakeLists.txt [llvm-objcopy] [COFF] Add support for removing symbols 2019-01-10 21:28:24 +00:00
CopyConfig.cpp [llvm-objcopy] Implement --set-section-flags. 2019-01-29 15:05:38 +00:00
CopyConfig.h [llvm-objcopy] Implement --set-section-flags. 2019-01-29 15:05:38 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ObjcopyOpts.td [llvm-objcopy] Implement --set-section-flags. 2019-01-29 15:05:38 +00:00
StripOpts.td [llvm-objcopy] Hook up the -V alias to --version, output "GNU strip" 2018-11-28 06:51:50 +00:00
llvm-objcopy.cpp [llvm-objcopy] Return Error from Buffer::allocate(), [ELF]Writer::finalize(), and [ELF]Writer::commit() 2019-01-22 23:49:16 +00:00
llvm-objcopy.h [llvm-objcopy] Return Error from Buffer::allocate(), [ELF]Writer::finalize(), and [ELF]Writer::commit() 2019-01-22 23:49:16 +00:00