473,395 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Linux Kernel - Shared libraries auto load when app starts up

Hi all,
I am using Linux OS ... my application XYZ uses shared libraries libA.so, and libB.so.

When application XYZ is started .... the libA.so and libB.so are loaded automatically (given that the env variable LD_LIBRARY_PATH is properly set) ...

If I want to validate the integrity of these libs before they are loaded, how am I going to do about that?

I understand the if I have dlopen in my C/C++ app, I cant write wrappter to the dlopen to validate the libraries before calling the actual dlopen ...
But in the case of auto loading shared libraries at startup time, Do I need to do anything with kernel for this purpose ?

Thanks,

uOne
Nov 8 '10 #1
1 2022
Oralloy
988 Expert 512MB
Do you have the luxury of wrapping your application inside a shell script?

Then you'd be able to verify your shared libraries before trying to execute the application.
Nov 9 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Frieder Loercher | last post by:
Hello, I am developping a (lammpi) parallel Application where any of the processes uses the Python script language. It works fine on Compaq Alpha and SUN Solaris5.9 On AIX5.1, it doesn't...
3
by: sdhyok | last post by:
Recently, I installed many shared libraries to run a program written in Python. Now, I am in the situation to run the same program but on several different machines with the same Linux OS. To...
3
by: Steven T. Hatton | last post by:
http://netlab.ru.is/exception/LinuxCXX.shtml We have implemented a complete kernel level run-time support for C++ in the Linux kernel. In particular our run-time support enables the full use of...
1
by: Craig Addleman | last post by:
How do I use the pltcu unknown module to auto-load a return value from a select query? I'm trying to boost performance in our databases by preloading certain frequently-used variables. Ultimately...
2
by: Apprentice | last post by:
Hi there, Is there a way in which I can specify at runtime to an application the locations of shared dynamic libraries on which it depends? I do not want to use LD_LIBRARY_PATH or other LD...
0
by: Lawrence D'Oliveiro | last post by:
Just came across this article <http://trends.newsforge.com/article.pl?sid=06/07/20/1431259from the Ottawa Linux Symposium, which mentions (among other things) Martin Bligh's presentation on the...
1
by: krivenok.dmitry | last post by:
Hello All! I have developed my application and I want to install it on server of my client. Development platform is Gentoo Linux. Target platform is Debian Linux. This is the output of "ldd"...
1
by: viraj.kadakia | last post by:
I observe a behavior with shared libraries (.so) and global variables that I cannot understand ... I'd appreciate if someone can explain the behavior .. Scenario 1: aTest is an executable on...
4
by: stuntgoat | last post by:
Hi, I want to start using Python 2.6 and 3000. I have several questions. What, in your experiences, is a functionally elegant solution to installing 2.6 and 3 from source without breaking...
2
by: udang | last post by:
Hi, I am using Linux and I need to find all the shared libraries that have been currently loaded in memory. Is there a way to list all of them ... Please correct me if I am wrong .... The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.