16#ifndef LIEF_ELF_QNX_STACK_H
17#define LIEF_ELF_QNX_STACK_H
22#include "LIEF/visibility.h"
23#include "LIEF/ELF/Note.hpp"
31 std::unique_ptr<Note>
clone()
const override {
32 return std::unique_ptr<QNXStack>(
new QNXStack(*
this));
44 void stack_size(uint32_t value);
45 void stack_allocated(uint32_t value);
46 void set_is_executable(
bool value);
48 void dump(std::ostream& os)
const override;
50 void accept(
Visitor& visitor)
const override;
52 static bool classof(
const Note* note) {
53 return note->
type() == Note::TYPE::QNX_STACK;
59 std::ostream& operator<<(std::ostream& os,
const QNXStack& note) {
Class which represents an ELF note. This class can be instantiated using the static Note::create func...
Definition Note.hpp:39
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:183
Class representing the QNX QNT_STACK note.
Definition QNXStack.hpp:29
bool is_executable() const
Whether the stack is executable.
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition QNXStack.hpp:31
uint32_t stack_allocated() const
Size of the stack pre-allocated (upfront)
uint32_t stack_size() const
Size of the stack.
Definition Visitor.hpp:221
LIEF namespace.
Definition Abstract/Binary.hpp:31