LIEF: Library to Instrument Executable Formats Version
Loading...
Searching...
No Matches
DynamicEntryLibrary.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_DYNAMIC_ENTRY_LIBRARY_H
17#define LIEF_ELF_DYNAMIC_ENTRY_LIBRARY_H
18
19#include <string>
20#include <ostream>
21
22#include "LIEF/visibility.h"
23
24#include "LIEF/ELF/DynamicEntry.hpp"
25
26namespace LIEF {
27namespace ELF {
28
32class LIEF_API DynamicEntryLibrary : public DynamicEntry {
33
34 public:
35 using DynamicEntry::DynamicEntry;
36
38 DynamicEntryLibrary(std::string name);
39
42
44 const std::string& name() const;
45 void name(const std::string& name);
46
47 static bool classof(const DynamicEntry* entry);
48
49 void accept(Visitor& visitor) const override;
50
51 std::ostream& print(std::ostream& os) const override;
52
53 private:
54 std::string libname_;
55};
56}
57}
58
59#endif
Class which represents a DT_NEEDED entry in the dynamic table.
Definition DynamicEntryLibrary.hpp:32
const std::string & name() const
Return the library associated with this entry (e.g. libc.so.6)
Class which represents an entry in the dynamic table These entries are located in the ....
Definition DynamicEntry.hpp:37
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32