| ... | @@ -392,7 +392,7 @@ const BinaryElfOutput = struct { | ... | @@ -392,7 +392,7 @@ const BinaryElfOutput = struct { |
| 392 | if (phdr.p_type == elf.PT_LOAD) { | 392 | if (phdr.p_type == elf.PT_LOAD) { |
| 393 | const newSegment = try allocator.create(BinaryElfSegment); | 393 | const newSegment = try allocator.create(BinaryElfSegment); |
| 394 | | 394 | |
| 395 | newSegment.physicalAddress = if (phdr.p_paddr != 0) phdr.p_paddr else phdr.p_vaddr; | 395 | newSegment.physicalAddress = phdr.p_paddr; |
| 396 | newSegment.virtualAddress = phdr.p_vaddr; | 396 | newSegment.virtualAddress = phdr.p_vaddr; |
| 397 | newSegment.fileSize = @intCast(phdr.p_filesz); | 397 | newSegment.fileSize = @intCast(phdr.p_filesz); |
| 398 | newSegment.elfOffset = phdr.p_offset; | 398 | newSegment.elfOffset = phdr.p_offset; |