From 563a3dcbc1f2d26adcd6761358c45d635738f3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matteo=20Gm=C3=BCr?= Date: Mon, 14 Oct 2024 12:42:54 +0000 Subject: Add more info on which elf flag means which objdump flag --- arch/x86_64/include/arch/memory/multiboot.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'arch/x86_64/include') diff --git a/arch/x86_64/include/arch/memory/multiboot.hpp b/arch/x86_64/include/arch/memory/multiboot.hpp index 3aee7fc..35b483e 100644 --- a/arch/x86_64/include/arch/memory/multiboot.hpp +++ b/arch/x86_64/include/arch/memory/multiboot.hpp @@ -147,7 +147,7 @@ namespace teachos::arch::memory /** * @brief (SHF_WRITE) Wether the current section is writable at runtime or not. If it isn't then the section is - * assumed to be READONLY and only that behaviour is shown in the objdump -h of the kernel file. Read from bit index + * assumed to be READONLY and only that flag is shown in the objdump -h of the kernel file. Read from bit index * 0. * * @return Current section is writable. @@ -155,14 +155,16 @@ namespace teachos::arch::memory auto writeable() const -> bool; /** - * @brief (SHF_ALLOC) Whether the current section occupies memory during execution or not. Read from bit index 1. + * @brief (SHF_ALLOC) Whether the current section occupies memory during execution or not. ALLOC flag is shown in + * the objdump -h of the kernel file. Read from bit index 1. * * @return Current section occupies memory during execution. */ auto occupies_memory() const -> bool; /** - * @brief (SHF_EXECINSTR) Whether the current section is executable or not. Read from bit index 2. + * @brief (SHF_EXECINSTR) Whether the current section is executable or not. CODE flag is shown in the object dump. + * Read from bit index 2. * * @return Current section is executable. */ -- cgit v1.2.3