Spdk/mk
Konrad Sztyber 3816dbf89b test/unit: remove unnecessary mock definitions
Added -ffunction-sections / --gc-sections to allow the linker to remove
unused functions when linking test executables. This reduces the number
of required mock definitions to those actually required by tested code.

Change-Id: I22725ce82e22675a7c2d28c8227e586f2cd65023
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-on: https://review.gerrithub.io/c/436319
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-01-13 00:48:20 +00:00
..
nvme.libtest.mk build: move app rules to spdk.app.mk 2018-12-12 22:35:21 +00:00
spdk.app_cxx.mk build: add mk/spdk.app_cxx.mk 2018-12-11 18:07:53 +00:00
spdk.app_vars.mk build: add mk/spdk.app_vars.mk 2018-12-11 18:07:53 +00:00
spdk.app.mk build: move app rules to spdk.app.mk 2018-12-12 22:35:21 +00:00
spdk.common.mk build: use linker specified by the LD env variable 2019-01-07 19:49:11 +00:00
spdk.deps.mk build: add copyright header where missing 2016-11-22 16:41:47 -07:00
spdk.lib.mk mk: add framework for defining inter-lib dependencies 2018-11-01 21:25:55 +00:00
spdk.mock.unittest.mk test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
spdk.modules.mk ftl: Initial implementation 2019-01-11 09:15:39 +00:00
spdk.subdirs.mk mk: add framework for defining inter-lib dependencies 2018-11-01 21:25:55 +00:00
spdk.unittest.mk test/unit: remove unnecessary mock definitions 2019-01-13 00:48:20 +00:00