aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-09-16 14:50:56 +0200
committerAyke van Laethem <[email protected]>2018-09-16 14:54:10 +0200
commit0d8a7e16662d236a803d4c9a43b49f25067969df (patch)
treee831de35da2a599dceeac5bb951e005feeae5650 /targets
parenta25e598463effbd83e8130219d7eebb16f44b6a1 (diff)
downloadtinygo-0d8a7e16662d236a803d4c9a43b49f25067969df.tar.gz
tinygo-0d8a7e16662d236a803d4c9a43b49f25067969df.zip
avr: link with the GCC runtime library
This allows the use of some compiler-generated builtins that are hopefully compatible with LLVM. Example: println(uint8(foo)) Code size is unchanged normally but of course compiler builtins will increase code size when actually used (for example with division).
Diffstat (limited to 'targets')
-rw-r--r--targets/arduino.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/targets/arduino.json b/targets/arduino.json
index 39d5f44f7..ab3150314 100644
--- a/targets/arduino.json
+++ b/targets/arduino.json
@@ -2,7 +2,7 @@
"llvm-target": "avr-atmel-none",
"build-tags": ["avr", "avr8", "atmega", "atmega328p", "js", "wasm"],
"linker": "avr-gcc",
- "pre-link-args": ["-nostdlib", "-T", "targets/avr.ld", "-Wl,--gc-sections", "targets/avr.S"],
+ "pre-link-args": ["-nostartfiles", "-T", "targets/avr.ld", "-Wl,--gc-sections", "targets/avr.S"],
"objcopy": "avr-objcopy",
"flash": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
}