R_PPC_REL24 relocation out of range
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: [email protected] ||
|____________________________________________________________________|/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 20 lines · Stephane GEORGES
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_REL24relocation 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).
Quoted 7 lines
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).
Which version of binutils are you working with? Maybe a newer version helps?
http://dev.linuxppc.org/pub/users/fsirl/R5/RPMS/ppc/binutils-2.9.5.0.14-0a.ppc.rpm
Andreas
Signature · 6 lines
| Andreas Tobler | CH-8004 Zuerich | E-Mail: [email protected] | [email protected] ----------------------------------------------------------- ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 5 lines
Quoted 5 lines
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_REL24relocation out of range (for instance)
'undefined external reference' in PPCese.
Quoted 3 lines
Which version of binutils are you working with? Maybe a newer version helps?
http://dev.linuxppc.org/pub/users/fsirl/R5/RPMS/ppc/binutils-2.9.5.0.14-0a.ppc.rpm
Rather a new version of ld.so (or the proper LD_PRELOD magic).
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/