From 0c3ec7f9a5f38a87c35eb473a145177df2f3994a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 2 Apr 2017 23:09:10 -0400 Subject: [PATCH] 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 --- src/avr/Makefile | 1 - 1 file changed, 1 deletion(-) 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