summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/CopyConfig.h
diff options
context:
space:
mode:
authorEugene Leviant <eleviant@accesssoftek.com>2019-02-26 09:24:22 +0000
committerEugene Leviant <eleviant@accesssoftek.com>2019-02-26 09:24:22 +0000
commit53350d041154350bcacbca5a7692d910e0a741de (patch)
treef48df893a3a2287ea9fa4661fe08f5a18abe72ab /llvm/tools/llvm-objcopy/CopyConfig.h
parente6f22596e5de7f4fc6f1de4725d4aa9b6aeef4aa (diff)
downloadbcm5719-llvm-53350d041154350bcacbca5a7692d910e0a741de.tar.gz
bcm5719-llvm-53350d041154350bcacbca5a7692d910e0a741de.zip
[llvm-objcopy] Add --set-start, --change-start and --adjust-start
Differential revision: https://reviews.llvm.org/D58173 llvm-svn: 354854
Diffstat (limited to 'llvm/tools/llvm-objcopy/CopyConfig.h')
-rw-r--r--llvm/tools/llvm-objcopy/CopyConfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/CopyConfig.h b/llvm/tools/llvm-objcopy/CopyConfig.h
index 97132946fe2..c9fb4ec6f20 100644
--- a/llvm/tools/llvm-objcopy/CopyConfig.h
+++ b/llvm/tools/llvm-objcopy/CopyConfig.h
@@ -113,6 +113,12 @@ struct CopyConfig {
StringMap<SectionFlagsUpdate> SetSectionFlags;
StringMap<StringRef> SymbolsToRename;
+ // ELF entry point address expression. The input parameter is an entry point
+ // address in the input ELF file. The entry address in the output file is
+ // calculated with EntryExpr(input_address), when either --set-start or
+ // --change-start is used.
+ std::function<uint64_t(uint64_t)> EntryExpr;
+
// Boolean options
bool DeterministicArchives = true;
bool ExtractDWO = false;
OpenPOWER on IntegriCloud