<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 15 Jan 2012, at 20:47, Nick Mathewson wrote:</div><blockquote type="cite"><p>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 would work with openssl, but it could be worth investigating. I believe there's a ticket for tor to use it by default when possible.</p></blockquote>I found a presentation on this which looks to contain useful information:</div><div><br></div><div><a href="http://elinux.org/images/2/2d/ELC2010-gc-sections_Denys_Vlasenko.pdf">http://elinux.org/images/2/2d/ELC2010-gc-sections_Denys_Vlasenko.pdf</a></div><div><br></div><div>Although post suggests that the Android NKD may have the relevant options on by default:</div><div><br></div><div><a href="http://stackoverflow.com/questions/7216543/does-android-ndk-build-with-gc-sections-and-how-to-disable">http://stackoverflow.com/questions/7216543/does-android-ndk-build-with-gc-sections-and-how-to-disable</a></div><div><br></div><div>Steven.</div></body></html>