hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

translate.ha (290B)


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