Thread (7 messages) flat view 7 messages, 6 authors, 2002-01-04

Re: Having linking problems with atomic_inc(), atomic_dec_and_test() in user app, help!

From: Tom Rini <hidden>
Date: 2002-01-04 19:04:03

On Fri, Jan 04, 2002 at 06:44:03PM +0100, Michael Schmitz wrote:
quoted
quoted
quoted
Also, what does "relocation truncated to fit: R_PPC_REL24
atomic_inc(atomic_t
quoted
quoted
*)" mean?
About as much as 'unresolved external reference'. atomic_inc isn't
defined
quoted
in the scope of your code. Look at the kernel headers; it might be
inside
quoted
#ifdef __KRENEL__ (actually it is).
I see... when I wrote the code using Red Hat, this was not the case.  I
assumed
things would be similar under all Linuxes... apparently a bad
assumption.
A userspace app using <asm/*.h> and <linux/*.h> is quite probably a bug.
If you need something from the kernel, make a local copy and never,
ever, ever, reference it directly, since it can change on you.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help