Re: Reordering objects in linking command line for Samba4

2014-05-20 Thread ianmcw01
On Tue, May 20th, 2014 at 1:06 AM, Marc Espie es...@nerim.net wrote: On Mon, May 19, 2014 at 06:56:48PM +0400, Vadim Zhukov wrote: This patch improves loading time of Samba 4 binaries a bit. This is a rude hack that involves lorder(1) to change order of object files being linked.

Re: Reordering objects in linking command line for Samba4

2014-05-20 Thread Stuart Henderson
On 2014/05/19 17:06, Marc Espie wrote: --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-buildtools_wafadmin_Tools_cxx_py 19 May 2014 14:45:35 - @@ -0,0 +1,14 @@ +$OpenBSD$ +Reorder object files to minimize library interrefs count. +Speeds up loading of library

Re: Reordering objects in linking command line for Samba4

2014-05-20 Thread Vadim Zhukov
2014-05-20 14:39 GMT+04:00, Stuart Henderson st...@openbsd.org: On 2014/05/19 17:06, Marc Espie wrote: --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-buildtools_wafadmin_Tools_cxx_py 19 May 2014 14:45:35 - @@ -0,0 +1,14 @@ +$OpenBSD$ +Reorder object files to

Re: Reordering objects in linking command line for Samba4

2014-05-20 Thread Marc Espie
On Tue, May 20, 2014 at 03:01:58PM +0400, Vadim Zhukov wrote: 2014-05-20 14:39 GMT+04:00, Stuart Henderson st...@openbsd.org: On 2014/05/19 17:06, Marc Espie wrote: --- /dev/null1 Jan 1970 00:00:00 - +++ patches/patch-buildtools_wafadmin_Tools_cxx_py 19 May 2014 14:45:35

Reordering objects in linking command line for Samba4

2014-05-19 Thread Vadim Zhukov
This patch improves loading time of Samba 4 binaries a bit. This is a rude hack that involves lorder(1) to change order of object files being linked. Unfortunately, it cannot be used to reorder libraries, i.e., the -lfoo items. Bad thing is that we inject shell code into command line, which

Re: Reordering objects in linking command line for Samba4

2014-05-19 Thread Marc Espie
On Mon, May 19, 2014 at 06:56:48PM +0400, Vadim Zhukov wrote: This patch improves loading time of Samba 4 binaries a bit. This is a rude hack that involves lorder(1) to change order of object files being linked. Unfortunately, it cannot be used to reorder libraries, i.e., the -lfoo items.