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