aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-08 11:39:32 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-08 11:39:32 +0000
commit88818847446c010ccbfce0690a20a4e6531ca6fa (patch)
tree4964005101fb1c255b4200d30c0d3dd29d43d37e /arch/x86_64/include
parent7edd03e9a14a3025b4d2b2ff51d838d20b79b2c4 (diff)
downloadteachos-88818847446c010ccbfce0690a20a4e6531ca6fa.tar.xz
teachos-88818847446c010ccbfce0690a20a4e6531ca6fa.zip
Add additional sanity checks to elf parsing
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/multiboot.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86_64/include/arch/memory/multiboot.hpp b/arch/x86_64/include/arch/memory/multiboot.hpp
index 5990260..c049a29 100644
--- a/arch/x86_64/include/arch/memory/multiboot.hpp
+++ b/arch/x86_64/include/arch/memory/multiboot.hpp
@@ -103,10 +103,8 @@ namespace teachos::arch::memory
};
/**
- * @brief Defines all elf section types an elf section header can have.
- * The first section will always be INACTIVE, there can only ever be one DYNAMIC section and only either one
- * DYNAMIC_SYMBOL_TABLE or SYMBOL_TABLE. See https://docs.oracle.com/cd/E19683-01/816-1386/chapter6-94076/index.html
- * for more information.
+ * @brief Defines all elf section types an elf section header can have. See
+ * https://docs.oracle.com/cd/E19683-01/816-1386/chapter6-94076/index.html for more information.
*/
enum class elf_section_type : uint32_t
{
@@ -304,6 +302,8 @@ namespace teachos::arch::memory
/**
* @brief Defines an entry in the multi_boot_tag array of the multi_boot_info struct, of type
* multi_boot_tag_type::ELF_SECTIONS.
+ * The first section in the sections array will always be INACTIVE, there can only ever be one DYNAMIC section and
+ * only either one DYNAMIC_SYMBOL_TABLE or SYMBOL_TABLE.
*/
struct elf_symbols_section
{