This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
LTO and version scripts
- From: Ulrich Drepper <drepper at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 30 Jun 2014 08:35:02 -0400
- Subject: LTO and version scripts
- Authentication-results: sourceware.org; auth=none
Using LTO to create a DSO works fine (i.e., it performs the expected
optimizations) for symbols which are marked with visibility
attributes. It does not work, though, when the symbol is not
restricted in its visibility in the source file but instead is
prevented from being exported from the DSO by a version script (ld
--version-script=FILE).
Is this known? I only found general problems related to linker
scripts although version script parameters do not cause any other
failures.