[Buildroot] [PATCH 1/2] build: add support for as-needed linking
Peter Korsgaard
peter at korsgaard.com
Tue Sep 20 23:17:23 UTC 2016
>>>>> "Gustavo" == Gustavo Zacarias <gustavo.zacarias at free-electrons.com> writes:
Hi,
>> So, what would that bring to us?
> Yes, that's what lazy binding does... but it's still based on
> DT_NEEDED entries, hence instead of scanning 10 libraries at required
> time in my example it will only need to scan 8 to resolve required
> symbols.
> For more complex applications that use many nested libraries the
> savings can be bigger.
> Example diff between non-as-needed gst-launch-1.0 and as-needed version:
> libgstreamer-1.0.so.0
> libgobject-2.0.so.0
> -libgmodule-2.0.so.0
> libglib-2.0.so.0
> -librt.so.1
> -libdl.so.2
> libgcc_s.so.1
> libpthread.so.0
> libc.so.6
So what is E.G. the time differences when running
time gst-launch-1.0 fakesrc num-buffers=1 ! fakesink
on a "normal" machine with/without these patches?
(Notice that gstreamer searches plugins and creates cache file first
time it is run).
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list