LD_PRELOAD getting ignored .. can anyone tell me why ?

This is a discussion on LD_PRELOAD getting ignored .. can anyone tell me why ? within the C Programming forums, part of the General Programming Boards category; I had it working but i screwed up something and now i get me@mymachine:~$ LD_PRELOAD=/home/me/libf1.o ldd FCaller ERROR: ld.so: object ...

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    50

    LD_PRELOAD getting ignored .. can anyone tell me why ?

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

    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)

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,263
    You can't preload a .o file, only .so files.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    50
    Quote Originally Posted by brewbuck View Post
    You can't preload a .o file, only .so files.
    dohh !!!
    thanx boss

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strange behavior when intercepting read() with LD_PRELOAD
    By *DEAD* in forum Linux Programming
    Replies: 2
    Last Post: 05-25-2008, 04:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21