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>
This commit is contained in:
parent
74e15b2eb5
commit
0c3ec7f9a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue