diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-04-02 23:09:10 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-04-02 23:19:19 -0400 |
commit | 0c3ec7f9a5f38a87c35eb473a145177df2f3994a (patch) | |
tree | 0cffe3d44639526d2a16fa8c92c4eddb5bbca5d2 | |
parent | 74e15b2eb56daae3110490bcd33a43c4482c28ce (diff) | |
download | kutter-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>
-rw-r--r-- | src/avr/Makefile | 1 |
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 |