33 static constexpr char delimiter =
':';
34 using DynamicEntry::DynamicEntry;
37 DynamicEntry::DynamicEntry(DynamicEntry::TAG::RUNPATH, 0)
43 runpath_(std::move(runpath))
56 std::unique_ptr<DynamicEntry> clone()
const override {
65 void runpath(std::string runpath) {
66 runpath_ = std::move(runpath);
70 std::vector<std::string>
paths()
const;
71 void paths(
const std::vector<std::string>& paths);
83 return append(std::move(path));
90 void accept(
Visitor& visitor)
const override;
92 static bool classof(
const DynamicEntry* entry) {
93 return entry->tag() == DynamicEntry::TAG::RUNPATH;
96 std::ostream& print(std::ostream& os)
const override;
98 ~DynamicEntryRunPath() =
default;
101 std::string runpath_;
Class that represents a DT_RUNPATH wich is used by the loader to resolve libraries (DynamicEntryLibra...
Definition DynamicEntryRunPath.hpp:30
DynamicEntryRunPath & insert(size_t pos, const std::string &path)
Insert a path at the given position
DynamicEntryRunPath & append(const std::string &path)
Append the given path
DynamicEntryRunPath & remove(const std::string &path)
Remove the given path
DynamicEntryRunPath(std::string runpath)
Constructor from (run)path.
Definition DynamicEntryRunPath.hpp:41
DynamicEntryRunPath(const std::vector< std::string > &paths)
Constructor from a list of paths.
Definition DynamicEntryRunPath.hpp:47
const std::string & runpath() const
Runpath raw value.
Definition DynamicEntryRunPath.hpp:61
std::vector< std::string > paths() const
Paths as a list.
Class which represents an entry in the dynamic table These entries are located in the ....
Definition DynamicEntry.hpp:37
TAG
Definition DynamicEntry.hpp:46