LD_PRELOAD Implementation in Prelink
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
Quoted 29 lines
Quoted 1 line
Merged to the staging branch.
Quoted 26 lines · Maninder Singh
EP-F6AA0618C49C4AEDA73BFF1B39950BAB
Hi,Subject: [PATCH 1/1]
LD_PRELOADImplementation in Prelinkprelink fails if there are
ld_preloadlibs present at target with below error.
expect libsX.so.1, found/lib/libY.soin dependency order where libY.so.1 isld_preloadlibTo 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 <[email protected]>Signed-off-by Maninder Singh <[email protected]>Reviewed-by Ajeet Yadav <[email protected]>Reviewed-by Geon-ho Kim <[email protected]>--- 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(-)
Quoted 5 lines · Maninder Singh
Hi Mark,
Thanks for checking,
There is one bug in this patch , we will share the fix after testing probably on monday.
I added what I thought was a fairly reasonable test case to prelink. testsuite/preload1*
Can you update the test case to include a specific check for the failure you are aware of so we can avoid it in the future?
--Mark
Quoted 33 lines
Thanks
Maninder SinghQuoted 29 lines
Quoted 1 line
Merged to the staging branch.
Quoted 26 lines · Maninder Singh
EP-F6AA0618C49C4AEDA73BFF1B39950BAB
Hi,Subject: [PATCH 1/1]
LD_PRELOADImplementation in Prelinkprelink fails if there are
ld_preloadlibs present at target with below error.
expect libsX.so.1, found/lib/libY.soin dependency order where libY.so.1 isld_preloadlibTo 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 <[email protected]>Signed-off-by Maninder Singh <[email protected]>Reviewed-by Ajeet Yadav <[email protected]>Reviewed-by Geon-ho Kim <[email protected]>--- 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(-)