I have a shared object file libfault.so for my 32 bit compiled application on RHEL 6.4. I want to preload this file while starting my application. I have placed it in /usr/local/lib/ directory.
But while starting the application, i am getting the following error.
ERROR: ld.so: object 'libfault.so' from LD_PRELOAD cannot be preloaded: ignored.
But, if i compile libfault.so in 64 bit and place in /usr/local/lib64/, I do not get the error. But the file is not doing its intended function since my application is 32 bit compiled.