Re: [tor-dev] Size issues with Orbot statically linking OpenSSL

2012-01-16 Thread Nathan Freitas
On 01/15/2012 07:30 PM, Steven Murdoch wrote: > Although post suggests that the Android NKD may have the relevant > options on by default: > http://stackoverflow.com/questions/7216543/does-android-ndk-build-with-gc-sections-and-how-to-disable We are still actually building with our pre-NDK "droid

Re: [tor-dev] Size issues with Orbot statically linking OpenSSL

2012-01-16 Thread Nathan Freitas
On 01/15/2012 03:47 PM, Nick Mathewson wrote: > Some stuff to try: openssl has lots of optional features and ciphers; > you could probably disable a lot of them. There are configuration > options to do so. If you're not sure what, I could try to take a look > at the list some time this week. Th

Re: [tor-dev] Size issues with Orbot statically linking OpenSSL

2012-01-16 Thread Nathan Freitas
On 01/16/2012 01:11 AM, Eitan Adler wrote: > clang does something similar with -O4 (link time optimization). See > http://llvm.org/docs/LinkTimeOptimization.html near "In this > example, the linker recognizes that foo2() " for more details Will check it out. Thx!

Re: [tor-dev] Size issues with Orbot statically linking OpenSSL

2012-01-15 Thread Eitan Adler
On Sun, Jan 15, 2012 at 7:30 PM, Steven Murdoch wrote: > On 15 Jan 2012, at 20:47, Nick Mathewson wrote: > > Another thing to try: recent gccs and their toolchains have a trick where > they can stick every function in its own segment, then tell the linker to > dump the unused ones. I believe it's

Re: [tor-dev] Size issues with Orbot statically linking OpenSSL

2012-01-15 Thread Steven Murdoch
On 15 Jan 2012, at 20:47, Nick Mathewson wrote: > Another thing to try: recent gccs and their toolchains have a trick where > they can stick every function in its own segment, then tell the linker to > dump the unused ones. I believe it's called "gc-segments" or something. I > have no idea if it

Re: [tor-dev] Size issues with Orbot statically linking OpenSSL

2012-01-15 Thread Nick Mathewson
On Jan 15, 2012 9:50 AM, "Nathan Freitas" wrote: >I did just want to run > this by all of you to see if there are any options for limiting the size > of libssl.a and libcrypto.a, and the resulting Tor binary. > Some stuff to try: openssl has lots of optional features and ciphers; you could proba

[tor-dev] Size issues with Orbot statically linking OpenSSL

2012-01-15 Thread Nathan Freitas
With the recent problems related to SSLv3 with versions of OpenSSL less than 1.0.0f, we have been investigating how to deal with this on Android for Orbot. Historically, we have used the version of OpenSSL provided by the Android device itself, which has ranged from 0.9.8 to 1.0.0e (the latest on I