Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 pmbaty 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