Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linker question



John Stiles:
>
I have written some code that I expected to be dead-stripped, but is actually being output into my final app. It's for a utility library; some clients want to use a small subset of the library, and I've written it so that the pieces ought to stand alone, but it seems that the linker doesn't want to dead-strip enough of it. Making matters worse, the actual dead-stripping behavior seems to vary on a project-by-project basis; some apps I've written dead-strip fine, while others won't.

It could be that the tool chain is deciding your functions need to be exported. Try building with "Symbols Hidden by Default" or use __attribute__((visibility("hidden"))). You can also use .exp files much like in CodeWarrior.



-- Jens Ayton _______________________________________________ Do not post admin requests to the list. They will be ignored. PerfOptimization-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden

This email sent to email@hidden
References: 
 >Should I "manualy unfold" LoadUnaligned" function? (From: Rustam Muginov <email@hidden>)
 >Re: Should I "manualy unfold" LoadUnaligned" function? (From: Rick Berry <email@hidden>)
 >Re: Should I "manualy unfold" LoadUnaligned" function? (From: Rustam Muginov <email@hidden>)
 >Re: Should I "manualy unfold" LoadUnaligned" function? (From: Rick Berry <email@hidden>)
 >Linker question (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.