LLVM 22.0.0git
llvm::objcopy::CommonConfig Struct Reference

#include "llvm/ObjCopy/CommonConfig.h"

Public Attributes

StringRef InputFilename
FileFormat InputFormat = FileFormat::Unspecified
StringRef OutputFilename
FileFormat OutputFormat = FileFormat::Unspecified
std::optional< MachineInfoOutputArch
StringRef AddGnuDebugLink
uint32_t GnuDebugLinkCRC32
std::optional< StringRefExtractPartition
uint8_t GapFill = 0
uint64_t PadTo = 0
StringRef SplitDWO
StringRef SymbolsPrefix
StringRef SymbolsPrefixRemove
StringRef AllocSectionsPrefix
DiscardType DiscardMode = DiscardType::None
SmallVector< NewSectionInfo, 0 > AddSection
SmallVector< StringRef, 0 > DumpSection
SmallVector< NewSectionInfo, 0 > UpdateSection
SmallVector< SectionPatternAddressUpdate, 0 > ChangeSectionAddress
SmallVector< StringRef, 0 > ExtractSection
NameMatcher KeepSection
NameMatcher OnlySection
NameMatcher ToRemove
NameMatcher SymbolsToGlobalize
NameMatcher SymbolsToKeep
NameMatcher SymbolsToLocalize
NameMatcher SymbolsToRemove
NameMatcher UnneededSymbolsToRemove
NameMatcher SymbolsToWeaken
NameMatcher SymbolsToKeepGlobal
NameMatcher SymbolsToSkip
StringMap< SectionRenameSectionsToRename
StringMap< uint64_tSetSectionAlignment
StringMap< SectionFlagsUpdateSetSectionFlags
StringMap< uint64_tSetSectionType
StringMap< StringRefSymbolsToRename
SmallVector< NewSymbolInfo, 0 > SymbolsToAdd
int64_t ChangeSectionLMAValAll = 0
bool DeterministicArchives = true
bool ExtractDWO = false
bool ExtractMainPartition = false
bool OnlyKeepDebug = false
bool PreserveDates = false
bool StripAll = false
bool StripAllGNU = false
bool StripDWO = false
bool StripDebug = false
bool StripNonAlloc = false
bool StripSections = false
bool StripUnneeded = false
bool Weaken = false
bool DecompressDebugSections = false
DebugCompressionType CompressionType = DebugCompressionType::None
SmallVector< std::pair< NameMatcher, llvm::DebugCompressionType >, 0 > compressSections
std::function< Error(Error)> ErrorCallback

Detailed Description

Definition at line 208 of file CommonConfig.h.

Member Data Documentation

◆ AddGnuDebugLink

StringRef llvm::objcopy::CommonConfig::AddGnuDebugLink

Definition at line 219 of file CommonConfig.h.

Referenced by handleArgs(), and llvm::objcopy::coff::handleArgs().

◆ AddSection

SmallVector<NewSectionInfo, 0> llvm::objcopy::CommonConfig::AddSection

◆ AllocSectionsPrefix

StringRef llvm::objcopy::CommonConfig::AllocSectionsPrefix

Definition at line 228 of file CommonConfig.h.

Referenced by handleArgs().

◆ ChangeSectionAddress

SmallVector<SectionPatternAddressUpdate, 0> llvm::objcopy::CommonConfig::ChangeSectionAddress

Definition at line 235 of file CommonConfig.h.

Referenced by handleArgs().

◆ ChangeSectionLMAValAll

int64_t llvm::objcopy::CommonConfig::ChangeSectionLMAValAll = 0

Definition at line 264 of file CommonConfig.h.

Referenced by handleArgs().

◆ CompressionType

DebugCompressionType llvm::objcopy::CommonConfig::CompressionType = DebugCompressionType::None

◆ compressSections

SmallVector<std::pair<NameMatcher, llvm::DebugCompressionType>, 0> llvm::objcopy::CommonConfig::compressSections

◆ DecompressDebugSections

bool llvm::objcopy::CommonConfig::DecompressDebugSections = false

◆ DeterministicArchives

bool llvm::objcopy::CommonConfig::DeterministicArchives = true

◆ DiscardMode

DiscardType llvm::objcopy::CommonConfig::DiscardMode = DiscardType::None

◆ DumpSection

SmallVector<StringRef, 0> llvm::objcopy::CommonConfig::DumpSection

◆ ErrorCallback

std::function<Error(Error)> llvm::objcopy::CommonConfig::ErrorCallback

Definition at line 290 of file CommonConfig.h.

Referenced by handleArgs().

◆ ExtractDWO

bool llvm::objcopy::CommonConfig::ExtractDWO = false

Definition at line 268 of file CommonConfig.h.

Referenced by handleArgs(), and replaceAndRemoveSections().

◆ ExtractMainPartition

bool llvm::objcopy::CommonConfig::ExtractMainPartition = false

Definition at line 269 of file CommonConfig.h.

Referenced by replaceAndRemoveSections().

◆ ExtractPartition

std::optional<StringRef> llvm::objcopy::CommonConfig::ExtractPartition

◆ ExtractSection

SmallVector<StringRef, 0> llvm::objcopy::CommonConfig::ExtractSection

Definition at line 236 of file CommonConfig.h.

Referenced by llvm::objcopy::dxbc::handleArgs().

◆ GapFill

uint8_t llvm::objcopy::CommonConfig::GapFill = 0

Definition at line 223 of file CommonConfig.h.

◆ GnuDebugLinkCRC32

uint32_t llvm::objcopy::CommonConfig::GnuDebugLinkCRC32

Definition at line 221 of file CommonConfig.h.

Referenced by handleArgs().

◆ InputFilename

◆ InputFormat

FileFormat llvm::objcopy::CommonConfig::InputFormat = FileFormat::Unspecified

Definition at line 211 of file CommonConfig.h.

◆ KeepSection

NameMatcher llvm::objcopy::CommonConfig::KeepSection

◆ OnlyKeepDebug

bool llvm::objcopy::CommonConfig::OnlyKeepDebug = false

◆ OnlySection

◆ OutputArch

◆ OutputFilename

◆ OutputFormat

FileFormat llvm::objcopy::CommonConfig::OutputFormat = FileFormat::Unspecified

Definition at line 213 of file CommonConfig.h.

Referenced by createWriter().

◆ PadTo

uint64_t llvm::objcopy::CommonConfig::PadTo = 0

Definition at line 224 of file CommonConfig.h.

◆ PreserveDates

bool llvm::objcopy::CommonConfig::PreserveDates = false

Definition at line 271 of file CommonConfig.h.

◆ SectionsToRename

StringMap<SectionRename> llvm::objcopy::CommonConfig::SectionsToRename

Definition at line 254 of file CommonConfig.h.

Referenced by handleArgs().

◆ SetSectionAlignment

StringMap<uint64_t> llvm::objcopy::CommonConfig::SetSectionAlignment

Definition at line 255 of file CommonConfig.h.

Referenced by handleArgs().

◆ SetSectionFlags

StringMap<SectionFlagsUpdate> llvm::objcopy::CommonConfig::SetSectionFlags

Definition at line 256 of file CommonConfig.h.

Referenced by handleArgs(), and llvm::objcopy::coff::handleArgs().

◆ SetSectionType

StringMap<uint64_t> llvm::objcopy::CommonConfig::SetSectionType

Definition at line 257 of file CommonConfig.h.

Referenced by handleArgs().

◆ SplitDWO

StringRef llvm::objcopy::CommonConfig::SplitDWO

Definition at line 225 of file CommonConfig.h.

Referenced by handleArgs().

◆ StripAll

◆ StripAllGNU

bool llvm::objcopy::CommonConfig::StripAllGNU = false

◆ StripDebug

◆ StripDWO

bool llvm::objcopy::CommonConfig::StripDWO = false

Definition at line 274 of file CommonConfig.h.

Referenced by replaceAndRemoveSections().

◆ StripNonAlloc

bool llvm::objcopy::CommonConfig::StripNonAlloc = false

Definition at line 276 of file CommonConfig.h.

Referenced by replaceAndRemoveSections().

◆ StripSections

bool llvm::objcopy::CommonConfig::StripSections = false

Definition at line 277 of file CommonConfig.h.

Referenced by createELFWriter(), and replaceAndRemoveSections().

◆ StripUnneeded

bool llvm::objcopy::CommonConfig::StripUnneeded = false

◆ SymbolsPrefix

StringRef llvm::objcopy::CommonConfig::SymbolsPrefix

Definition at line 226 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols().

◆ SymbolsPrefixRemove

StringRef llvm::objcopy::CommonConfig::SymbolsPrefixRemove

Definition at line 227 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols().

◆ SymbolsToAdd

SmallVector<NewSymbolInfo, 0> llvm::objcopy::CommonConfig::SymbolsToAdd

Definition at line 261 of file CommonConfig.h.

Referenced by llvm::objcopy::elf::executeObjcopyOnBinary(), and handleArgs().

◆ SymbolsToGlobalize

NameMatcher llvm::objcopy::CommonConfig::SymbolsToGlobalize

Definition at line 244 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols(), and updateAndRemoveSymbols().

◆ SymbolsToKeep

NameMatcher llvm::objcopy::CommonConfig::SymbolsToKeep

Definition at line 245 of file CommonConfig.h.

Referenced by replaceAndRemoveSections(), and updateAndRemoveSymbols().

◆ SymbolsToKeepGlobal

NameMatcher llvm::objcopy::CommonConfig::SymbolsToKeepGlobal

Definition at line 250 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols(), and updateAndRemoveSymbols().

◆ SymbolsToLocalize

NameMatcher llvm::objcopy::CommonConfig::SymbolsToLocalize

Definition at line 246 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols(), and updateAndRemoveSymbols().

◆ SymbolsToRemove

NameMatcher llvm::objcopy::CommonConfig::SymbolsToRemove

Definition at line 247 of file CommonConfig.h.

Referenced by llvm::objcopy::coff::handleArgs(), and updateAndRemoveSymbols().

◆ SymbolsToRename

StringMap<StringRef> llvm::objcopy::CommonConfig::SymbolsToRename

◆ SymbolsToSkip

NameMatcher llvm::objcopy::CommonConfig::SymbolsToSkip

Definition at line 251 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols(), and updateAndRemoveSymbols().

◆ SymbolsToWeaken

NameMatcher llvm::objcopy::CommonConfig::SymbolsToWeaken

Definition at line 249 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols(), and updateAndRemoveSymbols().

◆ ToRemove

◆ UnneededSymbolsToRemove

NameMatcher llvm::objcopy::CommonConfig::UnneededSymbolsToRemove

Definition at line 248 of file CommonConfig.h.

Referenced by llvm::objcopy::coff::handleArgs(), and updateAndRemoveSymbols().

◆ UpdateSection

SmallVector<NewSectionInfo, 0> llvm::objcopy::CommonConfig::UpdateSection

Definition at line 234 of file CommonConfig.h.

Referenced by handleArgs(), handleArgs(), and llvm::objcopy::coff::handleArgs().

◆ Weaken

bool llvm::objcopy::CommonConfig::Weaken = false

Definition at line 279 of file CommonConfig.h.

Referenced by updateAndRemoveSymbols(), and updateAndRemoveSymbols().


The documentation for this struct was generated from the following file: