linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* R_PPC_REL24 relocation out of range
@ 1999-11-23 13:03 Stephane GEORGES
  1999-11-23 13:35 ` Andreas Tobler
  0 siblings, 1 reply; 7+ messages in thread
From: Stephane GEORGES @ 1999-11-23 13:03 UTC (permalink / raw)
  To: linuxppc-dev


I am porting some code from linux Intel to linuxppc.

My executables have a plugin notion that allow people to add
some new functionalities to program (like photoshop plugins).

My plugins are shared libraries whose name does not start
with lib (like jobs.so.1.0).

These plugins can link on common shared libraries because
they implement the same main classes.

My issue is that I get such an error message when the second
plugin is beeing loaded (via dlopen)

jobs.so.1.0: R_PPC_REL24 relocation out of range (for instance)

If I rename my plugins adding lib in front of the name, then,
it works correctly (libjobs.so.1.0).

Could someone help me so that it works without the lib added
in front of the shared library name ?
Does ld have special options so that it works ?
(I have glibc-2.1.1-6c and my kernel is a 2.2.13).

The same code works correctly on my linux Intel (with same
version of glibc).

--

/====================================================================/|
| Stephane GEORGES                     |                             ||
| DALiM SOFTWARE GmbH      R&D         |    Tel: +49 7851 9196 40    ||
| Strassburger Str.6                   |    Fax: +49 7851 7357 6     ||
| D-77696                              |                             ||
| Kehl-Sundheim (Germany)              |    E-mail: sg@dalim.de      ||
|____________________________________________________________________|/


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <A5D247E9DC04C08EC1256832004AFECD.004AFF0FC1256832@kehl.dalim.de>]
* R_PPC_REL24 relocation out of range
@ 2001-07-20 13:30 David Burg
  2001-07-20 15:56 ` David Burg
  0 siblings, 1 reply; 7+ messages in thread
From: David Burg @ 2001-07-20 13:30 UTC (permalink / raw)
  To: linuxppc-dev


Hello,

I'm making cross-compilation from x86 to powerpc and I got such nice error
while executing :
dlopen: ./libf.so: R_PPC_REL24 relocation at 0x6fdb6458 for symbol
`L_OFFSET_TABLE_' out of range

With dynamic linked libraries. Making a search on the internet, I have seen
someone got the same trouble :

http://lists.linuxppc.org/listarcs/linuxppc-dev/200003/msg00025.html

I try this simple program and got the error with the cross-compiler (a
powerpc-linux-gcc 2.95.2 with matching g++ and ld behind). This web page was
of previous year, so I bet there exist a fix now but I can't find it.

I allready use -fpic -fPIC flags to my g++ calls. Note that the bug happen
when cross-compiling the libraries but not when localy compiling the
libraries.



Best regards,

David Burg.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-07-20 15:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-23 13:03 R_PPC_REL24 relocation out of range Stephane GEORGES
1999-11-23 13:35 ` Andreas Tobler
1999-11-23 14:47   ` Michael Schmitz
     [not found] <A5D247E9DC04C08EC1256832004AFECD.004AFF0FC1256832@kehl.dalim.de>
1999-11-23 16:31 ` Stephane GEORGES
1999-11-23 16:45   ` Andreas Tobler
  -- strict thread matches above, loose matches on Subject: below --
2001-07-20 13:30 David Burg
2001-07-20 15:56 ` David Burg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).