From 12eff09ff486e80ed073edb54074c7d3afbd6fc0 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 24 Apr 2019 20:54:05 +0200 Subject: [PATCH] Expose Elf32_Dyn and Elf64_Dyn --- std/elf.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/std/elf.zig b/std/elf.zig index d0ec5fb2a..49f2f7d13 100644 --- a/std/elf.zig +++ b/std/elf.zig @@ -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,