Use the "--gc-sections" linker option as well as those two compiler
options: "-ffunction-sections -fdata-sections". I am pretty sure the
linker doesn't do it by default. At least my GCC ARM toolchains never did.

On 09/23/2011 11:43 AM, Jeffrey Walton wrote:
>
> On Sep 22, 7:53 am, inderpaul <[email protected]> wrote:
>   
>> Hello.
>>
>> I am interested in mainly using the following functions which are part
>> of the Crypto++ library:
>>
>> string EncryptString(const char *plaintext, const char *passPhrase);
>> string DecryptString(const char *ciphertext, const char *passPhrase);
>>
>> void EncryptFile(const char *in, const char *out, const char
>> *passPhrase);
>> void DecryptFile(const char *in, const char *out, const char
>> *passPhrase);
>>
>> Is there anyway that I can compile and create a smaller size lib file
>> in which I could link statically to my project ? The reason being I
>> find that the compiled default lib is too large and has uneccessary
>> exported functions that I do not need. I am looking to make the
>> library somewhat smaller.....
>>     
> The linker will remove unused functions from the final executable. It
> removes unused Crypto++ function, unused stdc++ functions, etc.
>
>   

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to