add_symbols_versioning
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 2 Jul 2018 08:45:18 +0000 (09:45 +0100)
committerJulien Cristau <jcristau@mozilla.com>
Mon, 2 Jul 2018 08:45:18 +0000 (09:45 +0100)
commitef04388f232d61b816832701ffc2f1b952458695
treed9aee02cef00259232166ab931648735ea3d9d7f
parent3df0ec68a353aac5f05093a13e54ba333337b6c2
add_symbols_versioning

This patch adds a very simple linker script to version the lib's symbols
and thus trying to avoid crashes if an application loads two different
LLVM versions (as long as they do not share data between them).

Note that we deliberately *don't* make LLVM_3.9 depend on LLVM_3.8:
they're incompatible and the whole point of this patch is
to tell the linker that.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Author: Lisandro Damían Nicanor Pérez Meyer <lisandro@debian.org>
Bug-Debian: https://bugs.debian.org/848368

Gbp-Pq: Name add_symbols_versioning.patch
cmake/modules/AddLLVM.cmake
tools/llvm-shlib/CMakeLists.txt
tools/llvm-shlib/simple_version_script.map [new file with mode: 0644]