01-18-2011
Loaded Shared Libraries
Hi,
I have a problem about loaded shared libraries. I'm issuing ‘procldd' for a process and AIX shows me the loaded shared libraries. I'm collecting these libraries and counting their size. They were 350MB. After this, I'm issuing ‘ps vx' and I'm seeing that the process takes 130MB from AIX's memory. Do you think that I have any mistakes?
Thank you.
10 More Discussions You Might Find Interesting
1. Programming
Hello everybody,
I am having major problems at the moment with shared libraries and I have to little knowledge of them to solve them. So please, please help me :)
Ok this is the problem:
I have a library A, which uses B and C, and C uses again D.
If I try to run A as plugin in apache,... (0 Replies)
Discussion started by: Micky
0 Replies
2. Programming
I am compiling code which produces .a and .la libraries. How can I produce .so libraries? I know that gcc -shared does but how? (2 Replies)
Discussion started by: thalex
2 Replies
3. Programming
how to get the list of all dynamically loaded libraries in memory ?thanks! (3 Replies)
Discussion started by: rainshadow
3 Replies
4. Linux
How do i make a library shared
say i have a library a.so which i have just compiled.
I want to make it shared how do i make it
Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
Discussion started by: wojtyla
1 Replies
5. Programming
Hi everybody!
I would like to set in the makefile a path that should be the path where the program searches for the libraries loaded at run time.
Is there such a variable to be set in makefile?
Thanks in advance! (1 Reply)
Discussion started by: nadiamihu
1 Replies
6. Programming
anybody knows how to view loaded shared libraries by running processes in linux enviornment? any command or tool ?
thanks a lot (3 Replies)
Discussion started by: princelinux
3 Replies
7. UNIX for Advanced & Expert Users
can someone explain whether my understanding is correct
lets suppose we have a program that uses library x.
if x is static then the code of x will be part of our program, so if we're going to have 5 executables of our program, then each executable will have x as part of it.
Also, x does not... (2 Replies)
Discussion started by: JamesByars
2 Replies
8. AIX
I have two envoirmets(Envoirment A and Envoirment B) running on same server(AIX vesion 5.3).Both have different groups.I am facing a strange problem.Shared objects of one envoirment (Envoirment A)are getting loaded into the second(Envoirment B).So the servers that have dependency on shared objects... (2 Replies)
Discussion started by: nitin@tcs
2 Replies
9. AIX
Hello guys, I have a trouble when running an application in AIX, I've compiled and the
LIBRARY_PATH seems ok, but I get the following message:
rtld: 0712-001 Symbol __pthread was referenced
from module main_app(), but a runtime definition
of the symbol was not found
ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies
10. UNIX for Dummies Questions & Answers
Each shared library may contain sections with allocatable flag as below:
...
.hash
.gnu.hash
.dynsym
.dynstr
.gnu.version
.gnu.version_d
.rel.dyn
.rel.plt
.plt
...
My questions is that: among above sections, which of them should be loaded in the physical memory by run-time linker... (3 Replies)
Discussion started by: Dongping84
3 Replies
LDBASH(1) libbash Manual LDBASH(1)
NAME
ldbash -- Dynamic loader for libbash(7) libraries.
SYNOPSIS
ldbash [-h | --help]
ldbash [-l | --list]
ldbash [-L | --load lib,[lib] ...]
ldbash [-U | --unload lib,[lib] ...]
ldbash [-e | --externlist lib,[lib] ...]
ldbash [--externlist-all]
ldbash [--i | --internlista lib,[lib] ...]
ldbash [--internlist-all]
DESCRIPTION
ldbash is used to manipulate libbash(7) libraries. Its main function is to load specific library. It can also print list of available
libraries, list functions each library exports, unload functions, etc.
In case of --load and --unload ,the output is intended to be passed to bash eval command.
Options
-h | --help Print options summary
-l | --list Display list of available libraries. The libraries names listed, may be passed as parameters to other invocations of ldbash.
I.e. first you run ldbash --list to see what is available and then you may load it.
-L | --load lib,[lib] ...
Load given libraries - i.e. print string that should be passed to eval command. Usually the string contains various source
commands.
Libraries that given libraries depend on are also loaded.
Libraries only loaded if their dependencies are satisfied. Dependencies are resolved using ldbash.cache file, which is created
by ldbashconfig(8).
-U | --unload lib,[lib] ...
Unload given libraries, but not their dependencies.
The output should be passed to eval command (in the same manner as with --load ).
-e | --externlist lib,[lib] ...
List all symbols that are exported by given libraries. Symbols are usually functions that given libraries implement.
--externlist-all
List all exported symbols of all available libraries. Symbols are usually functions that library implement.
-i | --internlist lib,[lib] ...
List all internal symbols (i.e. global variables/functions) of given libraries. This is intended mostly for developers that
want to develop library of their own, and want to be sure that they don't override any already defined symbol.
--internlist-all
List all internal symbols of all available libraries. This is intended mostly for developers that want to develop library of
their own, and want to be sure that they don't override any already defined symbol.
FILES
/etc/ldbash.cache
Cache file that contains information about libraries dependencies and list of exported symbols. See ldbashconfig((8)) for further
details.
BUGS
The script can't load libraries if their file name starts with '-'. (If someone uses file names that start with a '-' he/she deserves it!)
AUTHORS
Hai Zaar <haizaar@gmail.com>
Gil Ran <gil@ran4.net>
SEE ALSO
libbash(7), ldbashconfig(8)
Linux Epoch Linux