Apache OpenOffice (AOO) Bugzilla – Issue 89511
small --as-needed optimization
Last modified: 2017-05-20 11:27:31 UTC
So before and after following patch LD_DEBUG=statistics /opt/openoffice.org3/program/soffice.bin -writer before: 9772: number of relocations: 22232 9772: number of relocations from cache: 54263 9772: final number of relocations: 65743 9772: final number of relocations from cache: 139071 after: 26600: number of relocations: 22167 26600: number of relocations from cache: 54259 26600: final number of relocations: 65172 26600: final number of relocations from cache: 138359 taking just the "final number of relocation" gives a reduction of nearly (at a stretch) 1% relocations
Created attachment 53669 [details] link as-needed
.
Created attachment 53881 [details] In addition to the abovementioned patch, I need this one, otherwise it crashes (really! ;-) ) ld on SLED10 x86-64.
@kendy: does the "--as-needed" switch require recent binutils?
hr: No idea when exactly it was introduced, but I've seen mail messages dated 2004 mentioning this linker flag, so nothing too recent I think :-)
Created attachment 63229 [details] Patch with check for ld > 2.17
I had some link errors with the older binutils (SLED10). It seems that "-Wl,--as-needed" was buggy in binutils < 2.17, see also http://www.gentoo.org/proj/en/qa/asneeded.xml I attached an updated diff that checks the ld version and also uses the flag for more architectures. I haven't tested it on all the architectures but it should be safe with the configure check.
I'm adding this comment to all open issues with Issue Type == PATCH. We have 220 such issues, many of them quite old. I apologize for that. We need your help in prioritizing which patches should be integrated into our next release, Apache OpenOffice 4.0. If you have submitted a patch and think it is applicable for AOO 4.0, please respond with a comment to let us know. On the other hand, if the patch is no longer relevant, please let us know that as well. If you have any general questions or want to discuss this further, please send a note to our dev mailing list: dev@openoffice.apache.org Thanks! -Rob
Reset assigne to the default "issues@openoffice.apache.org".