Expose Elf32_Dyn and Elf64_Dyn

master
LemonBoy 2019-04-24 20:54:05 +02:00
parent 074ddf1ac6
commit 12eff09ff4
1 changed files with 5 additions and 0 deletions

View File

@ -877,6 +877,11 @@ pub const Phdr = switch (@sizeOf(usize)) {
8 => Elf64_Phdr,
else => @compileError("expected pointer size of 32 or 64"),
};
pub const Dyn = switch (@sizeOf(usize)) {
4 => Elf32_Dyn,
8 => Elf64_Dyn,
else => @compileError("expected pointer size of 32 or 64"),
};
pub const Shdr = switch (@sizeOf(usize)) {
4 => Elf32_Shdr,
8 => Elf64_Shdr,