I have a Linux Application, when I execute the Application as root, the program runs fine. When I execute the application as any ordinary users, the program gives the following error message:

Cannot open shared library ‘./libeeprom.so’, either file does not exist or format is not compatible(Sytem message = ./libeeprom.so: failed to map segment from shared object: Operation not permitted).
ERROR: processing command line option: -FM…

strace the application shows:
old_mmap(NULL, 6548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = -1 EPERM (Operation not permitted)

So the true issue here is:

"failed to map segment from shared object: Operation not permitted"

But this operation is fine when I am login as root.
I appreciate if someone can help me solve this problem.

Regards,

Tagged with:

Filed under: Linux Applications

Like this post? Subscribe to my RSS feed and get loads more!