add_symbols_versioning
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 14 Jun 2017 17:06:20 +0000 (18:06 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 14 Jun 2017 17:06:20 +0000 (18:06 +0100)
commitb60f1e5d831dda5495b8b7453dee823969d1bb4b
treee2184bf0d9978e0dd007e4d1dc90eff02ae74e69
parent50c1274d294994d0513fb1351e91d0c249b50438
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]