mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-25 10:03:23 +00:00
支持对动态链接文件的加载,支持通过musl工具链编写用户空间程序 (#504)
支持对动态链接文件的加载,支持通过musl工具链编写用户空间程序
This commit is contained in:
10
kernel/src/arch/x86_64/elf.rs
Normal file
10
kernel/src/arch/x86_64/elf.rs
Normal file
@ -0,0 +1,10 @@
|
||||
use crate::{arch::MMArch, libs::elf::ElfArch, mm::MemoryManagementArch};
|
||||
|
||||
#[derive(Debug, Clone, Copy, Hash)]
|
||||
pub struct X86_64ElfArch;
|
||||
|
||||
impl ElfArch for X86_64ElfArch {
|
||||
const ELF_ET_DYN_BASE: usize = MMArch::USER_END_VADDR.data() / 3 * 2;
|
||||
|
||||
const ELF_PAGE_SIZE: usize = MMArch::PAGE_SIZE;
|
||||
}
|
Reference in New Issue
Block a user