l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social Gathering
Next Installfest:
Sat. Sept. 27, 10am-6pm
Latest News:
Aug. 30: September Installfest scheduled
Page last updated:
2004 Dec 01 09:47
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Relocation errors and dynamic symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Relocation errors and dynamic symbols



On Wed 01 Dec 04,  8:45 AM, Ken Herron <kherron+lugod@fmailbox.com> said:
> Peter Jay Salzman wrote:
> 
> >"U" doesn't mean a fatal undefined error; it simply means something that
> >needs to be linked on the fly by ld.so.  Right?  Is there a way of querying
> >ld.so about whether it "knows" a particular symbol?
> > 
> >
> The dynamic linker doesn't know about particular symbols. The nm 
> executable contains a list of shared libraries that it was linked with; 
> you can use ldd to see this list. When nm is executed, the dynamic 
> linker loads those libraries into its address space and tries to resolve 
> all of the undefined symbols.
> 
> The dynamic linker also has an API which can be invoked to access other 
> libraries under the program's control. This is used by things like PAM 
> to load authentication modules, or by mozilla to load plugins.

Yeah -- I knew most of this, but what if there's a particular symbol I'm
interested in... say nm reports:

   29A0CC U big_hairy_monster

and I want to know what library big_hairy_monster is supposed to come from.
What I was trying to get at is: is there a way of figuring out which library
this unresolved symbol is supposed to come from?

The only method I can think of is using ldd to get a list of all the
libraries, use objdump on each of the individual libraries, and grep through
each individual list.  A real pita.  I was hoping there was an easier way.

Pete

-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's "Fearful Symmetry"

PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

CD Burns Wanted!

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Z-World
Who has helped LUGOD immensely!