add_symbols_versioning
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 25 Apr 2017 13:10:10 +0000 (13:10 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 25 Apr 2017 13:10:10 +0000 (13:10 +0000)
commit1e92c9280a15fdda82cd9f417a9f5d46c63e1fb7
tree458651ff29f2e32e9c689e3ce8fc5c57615a3f84
parent7a71b32e5493b7b93681489f2a21fe6bb0c235f7
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]