Added missing linker options with support for latest Linaro toolchain DEV.RM_LLD.02.00.00.03
authorJustin Sobota <jsobota@ti.com>
Fri, 26 Apr 2013 23:33:33 +0000 (19:33 -0400)
committerJustin Sobota <jsobota@ti.com>
Fri, 26 Apr 2013 23:33:33 +0000 (19:33 -0400)
test/k2h/armv7/linux/build/makefile
test/k2k/armv7/linux/build/makefile

index 4d6816600d4512513611b6d7077373ade2732b27..5c569dd72511d46955f7c7776331a068e0c18d40 100644 (file)
@@ -39,7 +39,7 @@ RM_LIB = -lrm
 INTERNALDEFS = $(DEBUG_FLAG) -D__ARMv7 -DDEVICE_K2H -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD
 
 # Linker options
 INTERNALDEFS = $(DEBUG_FLAG) -D__ARMv7 -DDEVICE_K2H -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD
 
 # Linker options
-INTERNALLINKDEFS = -L $(ARMV7LIBDIR) $(RM_LIB) -lrt -pthread $(LDFLAGS)
+INTERNALLINKDEFS = -Wl,--start-group -L $(ARMV7LIBDIR) $(RM_LIB) -lrt -Wl,--end-group -pthread $(LDFLAGS)
 
 RM_SERVER_EXE=rmServer.out
 RM_CLIENT_TEST_EXE=rmClientTest.out
 
 RM_SERVER_EXE=rmServer.out
 RM_CLIENT_TEST_EXE=rmClientTest.out
index 7b76df87f3494174b378c10f236e70b47e0a8cf2..8b513d2b8e9ff83a012498efaf53121cd033d2e0 100755 (executable)
@@ -39,7 +39,7 @@ RM_LIB = -lrm
 INTERNALDEFS = $(DEBUG_FLAG) -D__ARMv7 -DDEVICE_K2K -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD
 
 # Linker options
 INTERNALDEFS = $(DEBUG_FLAG) -D__ARMv7 -DDEVICE_K2K -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD
 
 # Linker options
-INTERNALLINKDEFS = -L $(ARMV7LIBDIR) $(RM_LIB) -lrt -pthread $(LDFLAGS)
+INTERNALLINKDEFS = -Wl,--start-group -L $(ARMV7LIBDIR) $(RM_LIB) -lrt -Wl,--end-group -pthread $(LDFLAGS)
 
 RM_SERVER_EXE=rmServer.out
 RM_CLIENT_TEST_EXE=rmClientTest.out
 
 RM_SERVER_EXE=rmServer.out
 RM_CLIENT_TEST_EXE=rmClientTest.out