| ... | ... | @@ -4753,10 +4753,13 @@ fn ehdrType(elf: *const Elf) EhdrType { |
| 4753 | 4753 | fn targetPtrSize(elf: *const Elf) u8 { |
| 4754 | 4754 | return elf.identClass().size(); |
| 4755 | 4755 | } |
| 4756 | /// Page alignment for the target platform. |
| 4757 | /// Usually this returns the maximum page size supported on the |
| 4758 | /// target to maximize compatibility but there can be exceptions. |
| 4756 | 4759 | fn targetPageAlign(elf: *const Elf) std.mem.Alignment { |
| 4757 | 4760 | return .fromByteUnits(switch (elf.ehdrMachine()) { |
| 4758 | 4761 | .AARCH64 => 0x10000, |
| 4759 | | .LOONGARCH => 0x4000, |
| 4762 | .LOONGARCH => 0x10000, |
| 4760 | 4763 | .PPC64 => 0x10000, |
| 4761 | 4764 | .RISCV => 0x1000, |
| 4762 | 4765 | .SPARCV9 => 0x100000, |