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:
@@ -6,7 +6,6 @@ CROSS_PREFIX=avr-
|
|||||||
dirs-y += src/avr lib/pjrc_usb_serial
|
dirs-y += src/avr lib/pjrc_usb_serial
|
||||||
|
|
||||||
CFLAGS-y += -mmcu=$(CONFIG_MCU)
|
CFLAGS-y += -mmcu=$(CONFIG_MCU)
|
||||||
LDFLAGS-y += -Wl,--relax
|
|
||||||
|
|
||||||
# Add avr source files
|
# Add avr source files
|
||||||
src-y += avr/main.c avr/timer.c avr/gpio.c avr/misc.c
|
src-y += avr/main.c avr/timer.c avr/gpio.c avr/misc.c
|
||||||
|
Reference in New Issue
Block a user