diff --git a/3ds.json b/3ds.json index 3255f2a..fbdf65d 100644 --- a/3ds.json +++ b/3ds.json @@ -1,30 +1,32 @@ { "data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "llvm-target": "arm-none-eabihf", - "linker": "arm-none-eabi-g++", + "linker": "arm-none-eabi-gcc", "ar": "arm-none-eabi-ar", "target-endian": "little", "target-pointer-width": "32", "arch": "arm", - "os": "none", + "os": "linux", "cpu": "mpcore", "features": "+vfp2", "relocation-model": "static", - "linker-is-gnu": true, - "has-rpath": true, - "morestack": false, "disable-redzone": true, "executables": true, - "dynamic-linking": false, "no-compiler-rt": true, "exe-suffix": ".elf", - "is-like-windows": true, - "function-sections": false, "pre-link-args": [ - "-specs", - "3dsx.specs", + "-specs=3dsx.specs", "-march=armv6k", "-mtune=mpcore", - "-mfloat-abi=hard" + "-mfloat-abi=hard", + "-mtp=soft" + ], + "post-link-args": [ + "-lc", + "-lm", + "-lsysbase", + "-lc", + "-lgcc", + "-lc" ] }