LLVM 17.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/StringRef.h"
14#include <vector>
15
16namespace llvm {
17namespace objcopy {
18
19// ELF specific configuration for copying/stripping a single file.
20struct ELFConfig {
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
@ STV_DEFAULT
Definition: ELF.h:1266
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
std::function< uint64_t(uint64_t)> EntryExpr
Definition: ELFConfig.h:27