1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:17:34 +00:00

Kernel: Make sure the kernel's ELF PHDRs don't use rwx

This doesn't really matter in terms of writability for the kernel text
because we set up proper page mappings anyway which prohibit writing
to the text segment. However, this makes the profiler happy which
previously died when validating the kernel's ELF program headers.
This commit is contained in:
Gunnar Beutner 2021-06-18 19:04:39 +02:00 committed by Andreas Kling
parent f86e241699
commit c980a51776
3 changed files with 29 additions and 27 deletions

View file

@ -5,7 +5,7 @@
.set multiboot_flags, MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO
.set multiboot_checksum, -(MULTIBOOT_MAGIC + multiboot_flags)
.section .multiboot
.section .multiboot, "a"
.align 4
.long MULTIBOOT_MAGIC
@ -56,7 +56,7 @@ boot_pd3_pts:
boot_pd3_pt1023:
.skip 4096
.section .text
.section .boot_text, "ax"
.global start
.type start, @function