Add llvm code model option in target definition

This commit is contained in:
Yannis Huber
2020-06-02 20:41:31 +02:00
committed by Ron Evans
parent 34e0961a79
commit 4a658b9082
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -276,6 +276,7 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) {
GDB: "gdb", GDB: "gdb",
PortReset: "false", PortReset: "false",
FlashMethod: "native", FlashMethod: "native",
CodeModel: "default",
} }
if goos == "darwin" { if goos == "darwin" {
spec.LDFlags = append(spec.LDFlags, "-Wl,-dead_strip") spec.LDFlags = append(spec.LDFlags, "-Wl,-dead_strip")
+1 -1
View File
@@ -1,7 +1,7 @@
MEMORY MEMORY
{ {
RAM (xrw) : ORIGIN = 0xffffffff80000000, LENGTH = 6M RAM (xrw) : ORIGIN = 0x80000000, LENGTH = (6 * 1024 * 1024)
} }
REGION_ALIAS("FLASH_TEXT", RAM); REGION_ALIAS("FLASH_TEXT", RAM);