32 static constexpr char delimiter =
':';
33 using DynamicEntry::DynamicEntry;
35 DynamicEntry::DynamicEntry(DynamicEntry::TAG::RPATH, 0)
39 DynamicEntry::DynamicEntry(DynamicEntry::TAG::RPATH, 0),
40 rpath_(std::move(rpath))
53 std::unique_ptr<DynamicEntry> clone()
const override {
58 const std::string&
rpath()
const {
62 void rpath(
const std::string& name) {
63 rpath_ = std::move(name);
67 std::vector<std::string>
paths()
const;
68 void paths(
const std::vector<std::string>& paths);
80 return append(std::move(path));
87 static bool classof(
const DynamicEntry* entry) {
88 return entry->tag() == DynamicEntry::TAG::RPATH;
91 void accept(Visitor& visitor)
const override;
93 std::ostream& print(std::ostream& os)
const override;
95 ~DynamicEntryRpath() =
default;
Class which represents a DT_RPATH entry. This attribute is deprecated (cf. man ld) in favour of DT_RU...
Definition DynamicEntryRpath.hpp:30
const std::string & rpath() const
The actual rpath as a string.
Definition DynamicEntryRpath.hpp:58
DynamicEntryRpath & append(const std::string &path)
Append the given path
DynamicEntryRpath & insert(size_t pos, const std::string &path)
Insert a path at the given position
std::vector< std::string > paths() const
Paths as a list.
DynamicEntryRpath & remove(const std::string &path)
Remove the given path
DynamicEntryRpath(const std::vector< std::string > &paths)
Constructor from a list of paths.
Definition DynamicEntryRpath.hpp:44
Class which represents an entry in the dynamic table These entries are located in the ....
Definition DynamicEntry.hpp:37
TAG
Definition DynamicEntry.hpp:46