|
diff --git a/zig-elf/main.zig b/zig-elf/main.zig
|
| ... |
| 35 |
|
35 |
|
| 36 |
const header: *Elf64ExecutionHeader = @ptrCast(@alignCast(&buffer)); |
36 |
const header: *Elf64ExecutionHeader = @ptrCast(@alignCast(&buffer)); |
| 37 |
|
37 |
|
|
|
38 |
std.debug.print("sizeOf(Elf64ExecutionHeader) = {}\n", .{@sizeOf(Elf64ExecutionHeader)}); |
|
|
39 |
std.debug.print("bitSizeOf(Elf64ExecutionHeader) = {}\n", .{@bitSizeOf(Elf64ExecutionHeader)}); |
|
|
40 |
|
| 38 |
std.debug.print("Object file type: {}\n", .{header.type}); |
41 |
std.debug.print("Object file type: {}\n", .{header.type}); |
| 39 |
std.debug.print("Architecture: {}\n", .{header.machine}); |
42 |
std.debug.print("Architecture: {}\n", .{header.machine}); |
| 40 |
std.debug.print("Object file version: 0x{X:0>2}\n", .{header.version}); |
43 |
std.debug.print("Object file version: 0x{X:0>2}\n", .{header.version}); |
| ... |