LIEF: Library to Instrument Executable Formats Version
Loading...
Searching...
No Matches
SymbolVersionAux.hpp
1/* Copyright 2017 - 2023 R. Thomas
2 * Copyright 2017 - 2023 Quarkslab
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef LIEF_ELF_SYMBOL_VERSION_AUX_H
17#define LIEF_ELF_SYMBOL_VERSION_AUX_H
18
19#include <string>
20#include <ostream>
21
22#include "LIEF/Object.hpp"
23#include "LIEF/visibility.h"
24
25namespace LIEF {
26namespace ELF {
27class Parser;
28
30class LIEF_API SymbolVersionAux : public Object {
31 friend class Parser;
32 public:
33 SymbolVersionAux(std::string name);
35 ~SymbolVersionAux() override;
36
37 SymbolVersionAux& operator=(const SymbolVersionAux&);
39
41 const std::string& name() const;
42
43 void name(const std::string& name);
44
45 void accept(Visitor& visitor) const override;
46
47
48 LIEF_API friend std::ostream& operator<<(std::ostream& os, const SymbolVersionAux& symAux);
49
50 protected:
51 std::string name_;
52};
53
54}
55}
56#endif
Class which parses and transforms an ELF file into a ELF::Binary object.
Definition ELF/Parser.hpp:44
Class which represents an Auxiliary Symbol version.
Definition SymbolVersionAux.hpp:30
const std::string & name() const
Smybol's aux name (e.g. GLIBC_2.2.5)
Definition Object.hpp:25
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32