[LLVMbugs] [Bug 19333] New: LLVM exports too many symbols (on Unix like systems like Linux and Mac)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 3 20:42:50 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19333

            Bug ID: 19333
           Summary: LLVM exports too many symbols (on Unix like systems
                    like Linux and Mac)
           Product: Build scripts
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Makefiles
          Assignee: unassignedbugs at nondot.org
          Reporter: sstewartgallus00 at mylangara.bc.ca
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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 http://gcc.gnu.org/wiki/Visibility 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140404/dd3006b4/attachment.html>


More information about the llvm-bugs mailing list