[Buildroot] [RFC PATCH 2/9] support/scripts: add fix-rpath script to sanitize the rpath

Wolfgang Grandegger wg at grandegger.com
Tue Mar 14 07:36:25 UTC 2017


Hello Arnout,

Am 13.03.2017 um 18:08 schrieb Arnout Vandecappelle:
>
>
> On 12-03-17 22:10, Wolfgang Grandegger wrote:
>> Am 12.03.2017 um 21:53 schrieb Arnout Vandecappelle:
>>>
>>>
> [snip]
>>>  You mean 19 seconds for the C program vs 22 seconds for cmp? That's what I
>>> would expect indeed because cmp basically does the same. In my measurements,
>>> readelf still was significantly slower - I didn't write down the numbers but
>>> from memory it was like 25%.
>>
>> No, 19 sec for the C program just checking the first 4 bytes. 22 with patchelf.
>> And with readelf I think it was close to 19 sec as well. I will doublecheck,
>> though.
>
>  I think I had a bigger difference, but anyway even 20% isn't really worth it,
> probably.

Well, I just learned that it's very difficult to do reproducible 
measurements with my laptop due to frequency scaling, boost, 
temperature, etc. :(.

>>
>>>
>>>> patchelf is
>>>> written in C++... maybe that's the reason why it's slower.
>>>
>>>  Well, it's rather because patchelf reads the entire file into a std::vector,
>>> while readelf will just seek to the bits that are requested.
>>>
>>>
>>>
>>>  By the way, did you already post your patches to the patchelf list?
>>
>> I'm currently preparing a new patch series. I did not find a mailing list for
>> the patchelf project. Maybe I have to use the GIT hub interface.
>
>  Yes, github pull request is the way to go.

OK, will do with a CC to this list. More soon...

Wolfgang.



More information about the buildroot mailing list