LLVM  16.0.0git
ELFConfig.h
Go to the documentation of this file.
1 //===- ELFConfig.h ----------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_OBJCOPY_ELF_ELFCONFIG_H
10 #define LLVM_OBJCOPY_ELF_ELFCONFIG_H
11 
12 #include "llvm/ADT/Optional.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Object/ELFTypes.h"
15 #include <vector>
16 
17 namespace llvm {
18 namespace objcopy {
19 
20 // ELF specific configuration for copying/stripping a single file.
21 struct ELFConfig {
23 
24  // ELF entry point address expression. The input parameter is an entry point
25  // address in the input ELF file. The entry address in the output file is
26  // calculated with EntryExpr(input_address), when either --set-start or
27  // --change-start is used.
29 
30  bool AllowBrokenLinks = false;
31  bool KeepFileSymbols = false;
32  bool LocalizeHidden = false;
33 };
34 
35 } // namespace objcopy
36 } // namespace llvm
37 
38 #endif // LLVM_OBJCOPY_ELF_ELFCONFIG_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Optional.h
StringRef.h
llvm::objcopy::ELFConfig
Definition: ELFConfig.h:21
uint64_t
llvm::objcopy::ELFConfig::AllowBrokenLinks
bool AllowBrokenLinks
Definition: ELFConfig.h:30
ELFTypes.h
function
print Print MemDeps of function
Definition: MemDepPrinter.cpp:82
llvm::objcopy::ELFConfig::LocalizeHidden
bool LocalizeHidden
Definition: ELFConfig.h:32
llvm::objcopy::ELFConfig::NewSymbolVisibility
uint8_t NewSymbolVisibility
Definition: ELFConfig.h:22
llvm::ELF::STV_DEFAULT
@ STV_DEFAULT
Definition: ELF.h:1243
llvm::objcopy::ELFConfig::KeepFileSymbols
bool KeepFileSymbols
Definition: ELFConfig.h:31
llvm::objcopy::ELFConfig::EntryExpr
std::function< uint64_t(uint64_t)> EntryExpr
Definition: ELFConfig.h:28