Added missing linker options with support for latest Linaro toolchain
[keystone-rtos/rm-lld.git] / test / k2k / armv7 / linux / build / makefile
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
-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