Added a linker
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Eduard Urbach 2025-06-23 16:19:16 +02:00
parent 3ae47f93eb
commit cc2e98ca49
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
26 changed files with 541 additions and 11 deletions

15
src/elf/Arch.go Normal file
View file

@ -0,0 +1,15 @@
package elf
import "git.urbach.dev/cli/q/src/build"
// Arch converts the architecture variable to an ELF-specific constant.
func Arch(arch build.Arch) int16 {
switch arch {
case build.ARM:
return ArchitectureARM64
case build.X86:
return ArchitectureAMD64
default:
return 0
}
}