mk: replace the combined library with a linker script
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 24 Nov 2015 14:31:17 +0000 (16:31 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 1 Mar 2016 13:37:27 +0000 (14:37 +0100)
commit948fd64befc3726e10dd074490664611607cc994
tree139586fd481c0f5d16d43f3dc815377d33ca78ca
parent9792848c65a7cfcc97217bcaa104a0641112d61e
mk: replace the combined library with a linker script

The physically linked-together combined library has been an increasing
source of problems, as was predicted when library and symbol versioning
was introduced. Replace the complex and fragile construction with a
simple linker script which achieves the same without all the problems,
remove the related kludges from eg mlx drivers.

Since creating the linker script is practically zero cost, remove the
config option and just create it always.

Based on a patch by Sergio Gonzales Monroy, linker script approach
initially suggested by Neil Horman.

Suggested-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Suggested-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
17 files changed:
config/common_bsdapp
config/common_linuxapp
doc/guides/contributing/patches.rst
doc/guides/nics/mlx4.rst
doc/guides/nics/mlx5.rst
drivers/crypto/Makefile
drivers/net/Makefile
drivers/net/mlx4/Makefile
drivers/net/mlx5/Makefile
lib/Makefile
mk/rte.app.mk
mk/rte.combinedlib.mk [new file with mode: 0644]
mk/rte.lib.mk
mk/rte.sdkbuild.mk
mk/rte.sharelib.mk [deleted file]
mk/rte.vars.mk
scripts/test-build.sh