aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-02 23:09:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-02 23:19:19 -0400
commit0c3ec7f9a5f38a87c35eb473a145177df2f3994a (patch)
tree0cffe3d44639526d2a16fa8c92c4eddb5bbca5d2 /src
parent74e15b2eb56daae3110490bcd33a43c4482c28ce (diff)
downloadkutter-0c3ec7f9a5f38a87c35eb473a145177df2f3994a.tar.gz
kutter-0c3ec7f9a5f38a87c35eb473a145177df2f3994a.tar.xz
kutter-0c3ec7f9a5f38a87c35eb473a145177df2f3994a.zip
avr: Do not use --relax linker option
The relax option corrupts the compilation on at least some versions of gcc/binutils (eg, on fedora's avr-gcc 6.2.0 / binutils 2.27) due to corruption of switch tables that use jump offsets. This issue is also the root cause that resulted in commit d67f962a. Since the --relax option provides minimal size / performance improvements it can simply be dropped. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/avr/Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/avr/Makefile b/src/avr/Makefile
index d07d51f7..75021d28 100644
--- a/src/avr/Makefile
+++ b/src/avr/Makefile
@@ -6,7 +6,6 @@ CROSS_PREFIX=avr-
dirs-y += src/avr lib/pjrc_usb_serial
CFLAGS-y += -mmcu=$(CONFIG_MCU)
-LDFLAGS-y += -Wl,--relax
# Add avr source files
src-y += avr/main.c avr/timer.c avr/gpio.c avr/misc.c