<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - LLVM exports too many symbols (on Unix like systems like Linux and Mac)"
href="http://llvm.org/bugs/show_bug.cgi?id=19333">19333</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLVM exports too many symbols (on Unix like systems like Linux and Mac)
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Makefiles
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sstewartgallus00@mylangara.bc.ca
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This doesn't apply to Windows because by default symbols are hidden in DLLs. On
Unix like systems like Linux and Mac though there are a bunch of symbols
exported that shouldn't be which increase startup time. There is a long and
annoying process of marking symbols to export for the libraries but for the
executables (which obviously shouldn't export any symbols unless they have a
plugin system) the flag -fvisibility=hidden should be a cheap and easy
optimization. Note that LLVM does not use runtime type information or
exceptions so I believe there shouldn't be very many problems however,
according to <a href="http://gcc.gnu.org/wiki/Visibility">http://gcc.gnu.org/wiki/Visibility</a> there also some other cases
(for example, static data members of templates that can cause this problem).
Using #pragma push for one's own code could be one way of quickly accomplishing
this.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>