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:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2004 Dec 01 08:45

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)
[vox-tech] Relocation errors and dynamic symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Relocation errors and dynamic symbols



Hi all,

Continuing from the previous thread on "hello world", we saw an example of a
custom section (.rodata) getting relocated into a canonical section (.text)
in obj or exe files.

But what exactly is a relocation error?  I assume it means there was some
kind of directive to relocate a custom section into canonical section, and if
so, what are the most common causes of such a thing?

Also, looking at the output of nm for an executable:

   080cedf0 T OPdecrement
   080cfd20 T OPdivide
   0821a368 B openbottom
            U opendir@@GLIBC_2.0
            U open@@GLIBC_2.0
   08100820 D OpenGLOptionDef
   08100580 D OpenGLOptionsMenu
   0822ee00 B openings
            U open_music
   0821a36c B openrange
   0821a380 B opentop
   080cef90 T OPequals
   08126d80 D operators
   080cf4c0 T OPgreaterthan

"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?

Thanks!
Pete
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

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

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
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:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.