16#ifndef LIEF_ELF_CORE_AUXV_H
17#define LIEF_ELF_CORE_AUXV_H
73 arch_(arch), class_(cls)
76 std::unique_ptr<Note>
clone()
const override {
77 return std::unique_ptr<Note>(
new CoreAuxv(*
this));
81 std::map<TYPE, uint64_t>
values()
const;
94 void dump(std::ostream& os)
const override;
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CoreAuxv.hpp:76
std::map< TYPE, uint64_t > values() const
A map of CoreAuxv::TYPE and the value.
TYPE
Definition CoreAuxv.hpp:33
@ CLKTCK
Definition CoreAuxv.hpp:51
@ RANDOM
Definition CoreAuxv.hpp:59
@ EXECFD
Definition CoreAuxv.hpp:36
@ UCACHEBSIZE
Definition CoreAuxv.hpp:55
@ ICACHEBSIZE
Definition CoreAuxv.hpp:54
@ ENTRY
Definition CoreAuxv.hpp:43
@ NOTELF
Definition CoreAuxv.hpp:44
@ FLAGS
Definition CoreAuxv.hpp:42
@ PHDR
Definition CoreAuxv.hpp:37
@ IGNORE_TY
Definition CoreAuxv.hpp:35
@ PHNUM
Definition CoreAuxv.hpp:39
@ GID
Definition CoreAuxv.hpp:47
@ BASE_PLATFORM
Definition CoreAuxv.hpp:58
@ SYSINFO_EHDR
Definition CoreAuxv.hpp:67
@ FPUCW
Definition CoreAuxv.hpp:52
@ HWCAP
Definition CoreAuxv.hpp:50
@ HWCAP2
Definition CoreAuxv.hpp:60
@ SYSINFO
Definition CoreAuxv.hpp:66
@ PHENT
Definition CoreAuxv.hpp:38
@ END
Definition CoreAuxv.hpp:34
@ EUID
Definition CoreAuxv.hpp:46
@ IGNOREPPC
Definition CoreAuxv.hpp:56
@ BASE
Definition CoreAuxv.hpp:41
@ UID
Definition CoreAuxv.hpp:45
@ EXECFN
Definition CoreAuxv.hpp:65
@ DCACHEBSIZE
Definition CoreAuxv.hpp:53
@ SECURE
Definition CoreAuxv.hpp:57
@ TGT_PLATFORM
Definition CoreAuxv.hpp:49
@ PAGESZ
Definition CoreAuxv.hpp:40
@ EGID
Definition CoreAuxv.hpp:48
void dump(std::ostream &os) const override
static bool classof(const Note *note)
Definition CoreAuxv.hpp:98
bool set(TYPE type, uint64_t value)
~CoreAuxv() override=default
bool set(const std::map< TYPE, uint64_t > &values)
CoreAuxv(ARCH arch, Header::CLASS cls, std::string name, uint32_t type, description_t description)
Definition CoreAuxv.hpp:70
result< uint64_t > operator[](TYPE type) const
Definition CoreAuxv.hpp:87
friend std::ostream & operator<<(std::ostream &os, const CoreAuxv ¬e)
Definition CoreAuxv.hpp:105
void accept(Visitor &visitor) const override
result< uint64_t > get(TYPE type) const
Return the value associated with the provided TYPE or a lief_errors::not_found if the type is not pre...
std::vector< uint8_t > description_t
Container used to handle the description data.
Definition Note.hpp:46
@ CORE_AUXV
Coredump that contains a copy of all the auxiliary vectors (auxv).
Definition Note.hpp:82
TYPE type() const
Return the type of the note. This type does not match the NT_ type value. For accessing the original ...
Definition Note.hpp:195
const std::string & name() const
Return the name of the note (also known as 'owner' ).
Definition Note.hpp:184
Note(const Note ©)=default
span< const uint8_t > description() const
Return the description associated with the note.
Definition Note.hpp:206
Definition Visitor.hpp:210
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
const char * to_string(DynamicEntry::TAG e)
ARCH
Definition ELF/enums.hpp:30
@ NONE
Definition ELF/enums.hpp:31
LIEF namespace.
Definition Abstract/Binary.hpp:40
tl::expected< T, lief_errors > result
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:75
#define LIEF_API
Definition visibility.h:41