Skip to content
Snippets Groups Projects
Commit 4453133d authored by Dean Camera's avatar Dean Camera
Browse files

Disable linker relaxations for the UC3 architecture, as this does not appear...

Disable linker relaxations for the UC3 architecture, as this does not appear to be supported in the linker.
parent 2b332d32
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ ASM_SOURCE = $(filter %.S, $(SRC)) ...@@ -93,7 +93,7 @@ ASM_SOURCE = $(filter %.S, $(SRC))
OBJECT_FILES = $(filter %.o, $(C_SOURCE:%.c=%.o) $(CPP_SOURCE:%.cpp=%.o) $(ASM_SOURCE:%.S=%.o)) OBJECT_FILES = $(filter %.o, $(C_SOURCE:%.c=%.o) $(CPP_SOURCE:%.cpp=%.o) $(ASM_SOURCE:%.S=%.o))
# Create a list of flags to pass to the compiler # Create a list of flags to pass to the compiler
ifeq ($(ARCH),AVR8) ifneq ($(ARCH), AVR8)
CC_FLAGS += -mmcu=$(MCU) -gdwarf-2 -fshort-enums -fno-inline-small-functions -fpack-struct CC_FLAGS += -mmcu=$(MCU) -gdwarf-2 -fshort-enums -fno-inline-small-functions -fpack-struct
CROSS = avr- CROSS = avr-
else ifeq ($(ARCH), XMEGA) else ifeq ($(ARCH), XMEGA)
...@@ -112,7 +112,10 @@ ifneq ($(F_CPU),) ...@@ -112,7 +112,10 @@ ifneq ($(F_CPU),)
endif endif
# Create a list of flags to pass to the linker # Create a list of flags to pass to the linker
LD_FLAGS += -Wl,-Map=$(TARGET).map,--cref -Wl,--relax -Wl,--gc-sections -lm LD_FLAGS += -Wl,-Map=$(TARGET).map,--cref -Wl,--gc-sections -lm
ifneq ($(F_CPU), UC3)
LD_FLAGS += -Wl,--relax
endif
# Create a list of unknown source file types, if any are found throw an error # Create a list of unknown source file types, if any are found throw an error
UNKNOWN_SOURCE = $(filter-out $(C_SOURCE) $(CPP_SOURCE) $(ASM_SOURCE), $(SRC)) UNKNOWN_SOURCE = $(filter-out $(C_SOURCE) $(CPP_SOURCE) $(ASM_SOURCE), $(SRC))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment