[yocto] [prelink-cross] LD_PRELOAD Implementation in Prelink

Maninder Singh maninder1.s at samsung.com
Fri Sep 11 22:35:16 PDT 2015


Hi Mark,

Thanks for checking,

There is one bug in this patch , we will share the fix after testing probably on monday.

Thanks
Maninder Singh


>>Merged to the staging branch.

>On 5/18/15 12:17 AM, Maninder Singh wrote:
>> EP-F6AA0618C49C4AEDA73BFF1B39950BAB
>> Hi,
>> 
>> Subject: [PATCH 1/1] LD_PRELOAD Implementation in Prelink
>> 
>> prelink fails if  there are ld_preload libs present at target with below error.
>> 	expect libsX.so.1, found /lib/libY.so in dependency order
>> 	where libY.so.1 is ld_preload lib
>>  
>> To use this feature :
>> ./prelink --ld-preload=libpreload1.so:libpreload2.so:.... upto 20 libs
>> Order of libraries to be preloaded is significant. Make sure sequence
>> mentioned in prelink
>> should be same as runtime sequence.
>> 
>> Signed-off-by: Vaneet Narang <v.narang at samsung.com>
>> Signed-off-by: Maninder Singh <maninder1.s at samsung.com>
>> Reviewed-by: Ajeet Yadav <ajeet.v at samsung.com>
>> Reviewed-by: Geon-ho Kim <gh007.kim at samsung.com>
>> ---
>>  src/gather.c    |    8 +++++++-
>>  src/get.c       |    9 ++++++++-
>>  src/main.c      |    6 ++++++
>>  src/prelink.h   |    1 +
>>  src/rtld/rtld.c |   51 +++++++++++++++++++++++++++++++++++++++++++++------
>>  5 files changed, 67 insertions(+), 8 deletions(-)


More information about the yocto mailing list