translate.ha (315B)
1 // SPDX-License-Identifier: MPL-2.0 2 // (c) Hare authors <https://harelang.org> 3 4 use rt; 5 use types::c; 6 7 // Tries to translate a pointer into an ELF address of the currently running 8 // binary. 9 export fn translate(ptr: uintptr) (uintptr | void) = { 10 // TODO FreeBSD (will break when enabling PIE code) 11 return ptr; 12 };