From 4ead29c688c43930d186c8274a9a2e0da32fbb2d Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Tue, 30 Nov 2010 10:52:53 -0800 Subject: ZPU: -ffunction-sections --- firmware/microblaze/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/microblaze') diff --git a/firmware/microblaze/CMakeLists.txt b/firmware/microblaze/CMakeLists.txt index dd56f3579..0b7f396c7 100644 --- a/firmware/microblaze/CMakeLists.txt +++ b/firmware/microblaze/CMakeLists.txt @@ -41,7 +41,7 @@ INCLUDE_DIRECTORIES( ######################################################################## SET(CMAKE_C_FLAGS -abel) #always needed compile time and link time #ADD_DEFINITIONS(-mxl-soft-div -msoft-float -mxl-soft-mul -mxl-barrel-shift) -ADD_DEFINITIONS(-Os --std=gnu99 -Wall -Werror-implicit-function-declaration) +ADD_DEFINITIONS(-Os --std=gnu99 -Wall -Werror-implicit-function-declaration -ffunction-sections) MACRO(ADD_LINKER_FLAGS flags) SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${flags}") -- cgit v1.2.3