|
1 | | -// ELF64/System-V constants and parsing/validation helpers for DustLink. |
| 1 | +// File: linker_elf.ds - This file is part of the DPL Toolchain |
| 2 | +// Copyright (c) 2026 Dust LLC, and Contributors |
| 3 | +// Description: |
| 4 | +// ELF64/System-V constants and parsing/validation helpers for DustLink. |
| 5 | +// Provides: |
| 6 | +// - ELF header constants (EI_*, EM_*, ET_*, etc.) |
| 7 | +// - Section header constants (SHT_*, SHF_*, etc.) |
| 8 | +// - Program header constants (PT_*, PF_*, etc.) |
| 9 | +// - Symbol table constants (ST_*, STB_*, STT_*) |
| 10 | +// - Relocation type constants (R_* for x86_64, AArch64) |
| 11 | +// - ELF parsing and validation helpers |
2 | 12 |
|
3 | 13 | forge ElfFormat { |
4 | 14 | const EI_MAG0: UInt8 = 127; |
@@ -58,6 +68,12 @@ forge ElfFormat { |
58 | 68 | const R_X86_64_PC64: UInt32 = 24; |
59 | 69 | const R_X86_64_GOTPCRELX: UInt32 = 41; |
60 | 70 | const R_X86_64_REX_GOTPCRELX: UInt32 = 42; |
| 71 | + const R_X86_64_TPOFF64: UInt32 = 18; |
| 72 | + const R_X86_64_TPOFF32: UInt32 = 19; |
| 73 | + const R_X86_64_GOTTPOFF: UInt32 = 20; |
| 74 | + const R_X86_64_DTPOFF64: UInt32 = 17; |
| 75 | + const R_X86_64_DTPOFF32: UInt32 = 16; |
| 76 | + const R_X86_64_IRELATIVE: UInt32 = 42; |
61 | 77 | const R_AARCH64_NONE: UInt32 = 0; |
62 | 78 | const R_AARCH64_ABS64: UInt32 = 257; |
63 | 79 | const R_AARCH64_ABS32: UInt32 = 258; |
|
0 commit comments