Thread: LD_PRELOAD getting ignored .. can anyone tell me why ?

  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
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    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, 03:58 AM