LLVM
17.0.0git
include
llvm
ObjCopy
ELF
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/StringRef.h
"
13
#include "
llvm/Object/ELFTypes.h
"
14
#include <vector>
15
16
namespace
llvm
{
17
namespace
objcopy {
18
19
// ELF specific configuration for copying/stripping a single file.
20
struct
ELFConfig
{
21
uint8_t
NewSymbolVisibility
= (uint8_t)
ELF::STV_DEFAULT
;
22
23
// ELF entry point address expression. The input parameter is an entry point
24
// address in the input ELF file. The entry address in the output file is
25
// calculated with EntryExpr(input_address), when either --set-start or
26
// --change-start is used.
27
std::function<
uint64_t
(
uint64_t
)>
EntryExpr
;
28
29
bool
AllowBrokenLinks
=
false
;
30
bool
KeepFileSymbols
=
false
;
31
bool
LocalizeHidden
=
false
;
32
};
33
34
}
// namespace objcopy
35
}
// namespace llvm
36
37
#endif
// LLVM_OBJCOPY_ELF_ELFCONFIG_H
ELFTypes.h
StringRef.h
uint64_t
llvm::ELF::STV_DEFAULT
@ STV_DEFAULT
Definition:
ELF.h:1271
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::objcopy::ELFConfig
Definition:
ELFConfig.h:20
llvm::objcopy::ELFConfig::LocalizeHidden
bool LocalizeHidden
Definition:
ELFConfig.h:31
llvm::objcopy::ELFConfig::KeepFileSymbols
bool KeepFileSymbols
Definition:
ELFConfig.h:30
llvm::objcopy::ELFConfig::NewSymbolVisibility
uint8_t NewSymbolVisibility
Definition:
ELFConfig.h:21
llvm::objcopy::ELFConfig::EntryExpr
std::function< uint64_t(uint64_t)> EntryExpr
Definition:
ELFConfig.h:27
llvm::objcopy::ELFConfig::AllowBrokenLinks
bool AllowBrokenLinks
Definition:
ELFConfig.h:29
Generated on Mon May 29 2023 12:19:52 for LLVM by
1.9.6