LIEF: Library to Instrument Executable Formats
Version 1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
ELF
NoteDetails
QNXStack.hpp
Go to the documentation of this file.
1
/* Copyright 2017 - 2026 R. Thomas
2
* Copyright 2017 - 2026 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_QNX_STACK_H
17
#define LIEF_ELF_QNX_STACK_H
18
19
#include <ostream>
20
#include <memory>
21
22
#include "
LIEF/visibility.h
"
23
#include "
LIEF/ELF/Note.hpp
"
24
25
namespace
LIEF
{
26
namespace
ELF
{
27
29
class
LIEF_API
QNXStack
:
public
Note {
30
public
:
31
std::unique_ptr<Note>
clone
()
const override
{
32
return
std::unique_ptr<QNXStack>(
new
QNXStack
(*
this
));
33
}
34
36
uint32_t
stack_size
()
const
;
37
39
uint32_t
stack_allocated
()
const
;
40
42
bool
is_executable
()
const
;
43
44
void
stack_size
(uint32_t value);
45
void
stack_allocated
(uint32_t value);
46
void
set_is_executable
(
bool
value);
47
48
void
dump
(std::ostream& os)
const override
;
49
50
void
accept
(
Visitor
& visitor)
const override
;
51
52
static
bool
classof
(
const
Note* note) {
53
return
note->
type
() ==
Note::TYPE::QNX_STACK
;
54
}
55
56
~QNXStack
()
override
=
default
;
57
58
LIEF_API
friend
59
std::ostream&
operator<<
(std::ostream& os,
const
QNXStack
& note) {
60
note.
dump
(os);
61
return
os;
62
}
63
protected
:
64
using
Note::Note
;
65
};
66
67
68
}
// namepsace ELF
69
}
// namespace LIEF
70
71
#endif
Note.hpp
LIEF::ELF::Note::TYPE::QNX_STACK
@ QNX_STACK
QNX Note.
Definition
Note.hpp:125
LIEF::ELF::Note::type
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
LIEF::ELF::Note::Note
Note(const Note ©)=default
LIEF::ELF::QNXStack
Class representing the QNX QNT_STACK note.
Definition
QNXStack.hpp:29
LIEF::ELF::QNXStack::stack_size
void stack_size(uint32_t value)
LIEF::ELF::QNXStack::~QNXStack
~QNXStack() override=default
LIEF::ELF::QNXStack::classof
static bool classof(const Note *note)
Definition
QNXStack.hpp:52
LIEF::ELF::QNXStack::set_is_executable
void set_is_executable(bool value)
LIEF::ELF::QNXStack::is_executable
bool is_executable() const
Whether the stack is executable.
LIEF::ELF::QNXStack::operator<<
friend std::ostream & operator<<(std::ostream &os, const QNXStack ¬e)
Definition
QNXStack.hpp:59
LIEF::ELF::QNXStack::clone
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition
QNXStack.hpp:31
LIEF::ELF::QNXStack::dump
void dump(std::ostream &os) const override
LIEF::ELF::QNXStack::stack_allocated
uint32_t stack_allocated() const
Size of the stack pre-allocated (upfront).
LIEF::ELF::QNXStack::stack_size
uint32_t stack_size() const
Size of the stack.
LIEF::ELF::QNXStack::stack_allocated
void stack_allocated(uint32_t value)
LIEF::ELF::QNXStack::accept
void accept(Visitor &visitor) const override
LIEF::Visitor
Definition
Visitor.hpp:210
LIEF::ELF
Namespace related to the LIEF's ELF module.
Definition
Abstract/Header.hpp:28
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:40
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:41
Generated by
1.17.0