LD_PRELOAD getting ignored .. can anyone tell me why ?


 
Thread Tools Search this Thread
Top Forums Programming LD_PRELOAD getting ignored .. can anyone tell me why ?
# 1  
Old 09-19-2012
LD_PRELOAD getting ignored .. can anyone tell me why ?

I had it working but i screwed up something and now i get

Code:
me@mymachine:~$ LD_PRELOAD=/home/me/libf1.o ldd FCaller 
ERROR: ld.so: object '/home/me/libf1.o' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/me/libf1.o' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/me/libf1.o' from LD_PRELOAD cannot be preloaded: ignored.
    linux-gate.so.1 =>  (0xb7735000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7579000)
    /lib/ld-linux.so.2 (0xb7736000)


Last edited by radoulov; 09-20-2012 at 06:03 AM..
# 2  
Old 09-20-2012
This is often due to a 32-bit / 64-bit mismatch.

What says:
Code:
file /home/me/libf1.o FCaller

# 3  
Old 09-20-2012
got it to work
now can i write a small function while will return , what gettimeofday() returns without using gettimeofday ()

thanx
# 4  
Old 09-20-2012
Can you please share what was the actual problem and how did you solve it ?
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Declaring LD_PRELOAD system wide for dynamic loading

Dear Fellows; As being new to linux, i have tried to synamically load a custom library which overrides some system calls like conncet(), socket() etc.... for custom purposes. It works well, if declaring the environment path LD_PRELOAD and execution of the application to be override... (0 Replies)
Discussion started by: mzeeshan
0 Replies

2. UNIX for Advanced & Expert Users

Preloading libraries.. LD_PRELOAD

well i know what LD_PRELOAD is. Now suppose i have hooked a function XDrawString in the my library (Mylib.so.1) and then used the command export LD_PRELOAD=/path/mylib.so.1 Now suppose i open Xeditor by typing 'xeditor' in the console, my library is geting used, so i knw that this applilcation is... (3 Replies)
Discussion started by: manchester
3 Replies

3. UNIX for Advanced & Expert Users

What does LD_PRELOAD signify?

Hi, What does LD_PRELOAD variable signify on HP-UX? thanks in advance, -Ashish (4 Replies)
Discussion started by: shriashishpatil
4 Replies

4. HP-UX

LD_PRELOAD on HP UX?

Hi , Is LD_PRELOAD supported on HP UX? I am having issues when i export the below export LD_PRELOAD=/usr/local/vertex/commtax_1.0.16/64bit/lib/libctq.so ldd /usr/local/vertex/commtax_1.0.16/64bit/lib/libctq.so /usr/lib/hpux64/dld.so: Unable to find library 'libodbc.so'. Killed Can... (2 Replies)
Discussion started by: psreddy1234
2 Replies

5. Linux

LD_PRELOAD on x86_64 gives error from ld.so

I have implemented an interposer for open() and open64() system call. This interposer is implemented in interposer.c and I have compiled it in a shared library (libinterposer.so) using the following commands: gcc -g -fPIC -s -o interposer.o -c interposer.c gcc -s -g -shared -nostartfiles ... (0 Replies)
Discussion started by: Manish Mukherje
0 Replies
Login or Register to Ask a Question