authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-04-24 20:54:05+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-04-24 20:54:05+02:00
log12eff09ff486e80ed073edb54074c7d3afbd6fc0
tree0ade2b8f181cd9e3ad9846b5afffb4cc3e521aec
parent074ddf1ac6cefaff21d8b49a126556158ec5bc6b

Expose Elf32_Dyn and Elf64_Dyn


1 files changed, 5 insertions(+), 0 deletions(-)

std/elf.zig+5
...@@ -877,6 +877,11 @@ pub const Phdr = switch (@sizeOf(usize)) {...@@ -877,6 +877,11 @@ pub const Phdr = switch (@sizeOf(usize)) {
877 8 => Elf64_Phdr,877 8 => Elf64_Phdr,
878 else => @compileError("expected pointer size of 32 or 64"),878 else => @compileError("expected pointer size of 32 or 64"),
879};879};
880pub const Dyn = switch (@sizeOf(usize)) {
881 4 => Elf32_Dyn,
882 8 => Elf64_Dyn,
883 else => @compileError("expected pointer size of 32 or 64"),
884};
880pub const Shdr = switch (@sizeOf(usize)) {885pub const Shdr = switch (@sizeOf(usize)) {
881 4 => Elf32_Shdr,886 4 => Elf32_Shdr,
882 8 => Elf64_Shdr,887 8 => Elf64_Shdr,