Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #2534 - devnexen:haiku_dl_phdr, r=JohnTitor
haiku dl_phdr_iterate addition (supports since beta3).
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
pub type c_long = i32; | ||
pub type c_ulong = u32; | ||
pub type time_t = i32; | ||
|
||
pub type Elf_Addr = ::Elf32_Addr; | ||
pub type Elf_Half = ::Elf32_Half; | ||
pub type Elf_Phdr = ::Elf32_Phdr; | ||
|
||
s! { | ||
pub struct Elf32_Phdr { | ||
pub p_type: ::Elf32_Word, | ||
pub p_offset: ::Elf32_Off, | ||
pub p_vaddr: ::Elf32_Addr, | ||
pub p_paddr: ::Elf32_Addr, | ||
pub p_filesz: ::Elf32_Word, | ||
pub p_memsz: ::Elf32_Word, | ||
pub p_flags: ::Elf32_Word, | ||
pub p_align: ::Elf32_Wword, | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
pub type c_ulong = u64; | ||
pub type c_long = i64; | ||
pub type time_t = i64; | ||
|
||
pub type Elf_Addr = ::Elf64_Addr; | ||
pub type Elf_Half = ::Elf64_Half; | ||
pub type Elf_Phdr = ::Elf64_Phdr; | ||
|
||
s! { | ||
pub struct Elf64_Phdr { | ||
pub p_type: ::Elf64_Word, | ||
pub p_flags: ::Elf64_Word, | ||
pub p_offset: ::Elf64_Off, | ||
pub p_vaddr: ::Elf64_Addr, | ||
pub p_paddr: ::Elf64_Addr, | ||
pub p_filesz: ::Elf64_Xword, | ||
pub p_memsz: ::Elf64_Xword, | ||
pub p_align: ::Elf64_Xword, | ||
} | ||
} |
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