| author | |
| committer | |
| log | 64b6a4ff7731ac70556081500b0a615b9f4a42a1 |
| tree | 0d8c761ad28113c15a531fe49d4cd0b35a873999 |
| parent | eb363bf84503c428374d5c698ef7ebd574940a11 |
| signature |
Fix suggested by @cclin0816.
Closes #20019.1 files changed, 1 insertions(+), 1 deletions(-)
lib/compiler/objcopy.zig+1-1| ... | ... | @@ -392,7 +392,7 @@ const BinaryElfOutput = struct { |
| 392 | 392 | if (phdr.p_type == elf.PT_LOAD) { |
| 393 | 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 | 396 | newSegment.virtualAddress = phdr.p_vaddr; |
| 397 | 397 | newSegment.fileSize = @intCast(phdr.p_filesz); |
| 398 | 398 | newSegment.elfOffset = phdr.p_offset; |