-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Klib linker scripts: use ELF segments with appropriate permissions
This change amends the linker scripts for the klibs so that each klib ELF file has 3 segments: a text segment with read and execute permissions, a data segment with read-only permissions, and a data segment with read/write permissions. This avoids mapping an entire klib image with both write and execute permissions when the kernel loads a klib. In addition, the SECTIONS directive in the linker scripts has been fixed so that all the read-only input sections are mapped to the .text and .rodata output sections; this decreases the size of the klib ELF files.
- Loading branch information
1 parent
f01a617
commit c641f82
Showing
3 changed files
with
39 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters