Skip to content

Commit

Permalink
Only restrict symbols from libstdc++
Browse files Browse the repository at this point in the history
  • Loading branch information
brills committed Jul 15, 2019
1 parent a8e0bac commit 778a194
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions cpp/src/gandiva/symbols.map
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@
# under the License.

{
global:
extern "C++" {
# The leading asterisk is required for symbols such as
# "typeinfo for gandiva::SomeClass".
# Unfortunately this will also catch template specializations
# (from e.g. STL or Flatbuffers) involving Arrow types.
*gandiva::*;
};

# Symbols marked as 'local' are not exported by the DSO and thus may not
# be used by client applications. Everything except the above falls here.
# This ensures we hide symbols of static dependencies.
# be used by client applications.
local:
*;
# devtoolset / static-libstdc++ symbols
__cxa_*;
__once_proxy;

extern "C++" {
# devtoolset or -static-libstdc++ - the Red Hat devtoolset statically
# links c++11 symbols into binaries so that the result may be executed on
# a system with an older libstdc++ which doesn't include the necessary
# c++11 symbols.
std::*;
*std::__once_call*;
};
};

0 comments on commit 778a194

Please sign in to comment.