l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
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?

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
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:
O'Reilly and Associates
For numerous book donations.