[LLVMdev] -O4 -fvisibility=hidden

Devang Patel dpatel at apple.com
Mon Jan 26 09:57:28 PST 2009


Hi Jack,

On Jan 25, 2009, at 10:00 AM, Jack Howarth wrote:

>    Doing that changes the error messages into a bus
> error on the darwin linker.


Pl. file bugzilla report (or radar) with a reproducible test case so  
that we can investigate this linker crash.

As you know, one way to control symbol visibility is to use gcc's  
(inherited by llvm-gcc) visibility support. GCC supports, 1) command  
line options 2) attributes and 3) pragmas in this regard. Following  
document provides good summary...

http://developer.apple.com/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html#/ 
/apple_ref/doc/uid/TP40001670

Another way to control symbol visibility is to use linker's interface.  
See ld man page for more info on -exported_symbols_list, - 
exported_symbols, -unexported_symbols_list etc.. flags. If you're  
going to try this approach, pl. read ld man page first.
-
Devang






More information about the llvm-dev mailing list