| author | |
| committer | |
| log | e6fd01a9493bed097271f07cd2493b51df51c98d |
| tree | cdd9eb331bce7665ba0272d3114c9661d086dfb1 |
| parent | cfd3bcffec997a18521f685738e4dc7eef940422 |
| parent | 64b6a4ff7731ac70556081500b0a615b9f4a42a1 |
| signature |
`objcopy`: Use `p_paddr` from `PT_LOAD` even if zero.1 files changed, 1 insertions(+), 1 deletions(-)
lib/compiler/objcopy.zig+1-1| ... | ... | @@ -456,7 +456,7 @@ const BinaryElfOutput = struct { |
| 456 | 456 | if (phdr.p_type == elf.PT_LOAD) { |
| 457 | 457 | const newSegment = try allocator.create(BinaryElfSegment); |
| 458 | 458 | |
| 459 | newSegment.physicalAddress = if (phdr.p_paddr != 0) phdr.p_paddr else phdr.p_vaddr; | |
| 459 | newSegment.physicalAddress = phdr.p_paddr; | |
| 460 | 460 | newSegment.virtualAddress = phdr.p_vaddr; |
| 461 | 461 | newSegment.fileSize = @intCast(phdr.p_filesz); |
| 462 | 462 | newSegment.elfOffset = phdr.p_offset; |