Problems with dynamic loading

JanFriso.Groote at cwi.nl JanFriso.Groote at cwi.nl
Tue Dec 8 00:52:16 EST 1998


Dear Linuxppc developers,

I have a problem with dynamic loading using dlopen. The prgram
included below runs perfectly on Redhat Intel Linux, but crashes
on PPC Linux. It appears to me that dynamic linking is not
carried out correctly, in the sense that a dynamically loaded program
(below this program is called dynamite) does not call the 
alrerady existing routines correctly. In case you might draw a conclusion,
for instance that the problem does not occur in newer versions
of the system, I would appreciate if you could let me know (jfg at cwi.nl).

You should type make and then main to run the example. The program
should  enter main, dynamite, in_main, and then jump back to dynamite and
main. On the PPC the call to in_main fails, leading to a segmentation fault.

I am using [jfg at groote experiment]$ gcc --version
2.7.2.1-ppclinux

[jfg at groote experiment]$ ld -version
GNU ld 2.8.2
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   elf32ppc

I think the Linux system is version 3.0, distributed in the beginning of 1998,
but I cannot find any confirmation of this.

I would be very much obliged if you could let me know your conclusions.

With many greetings, 
Jan Friso Groote



begin 644 e.tar
M97AP97)I;65N="\`````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````"`T,#<W-2``("`@-S8T(``@("`W-C0@`"`@("`@("`@("`P
M("`V-C,R-S8Q-S,P("`Q,#<T-``@-0``````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````!U<W1A<B`@`&IF9P``
M````````````````````````````````````:F9G````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````!E>'!E<FEM96YT+VUA:6XN8P``````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````,3`P-C8T(``@("`W-C0@`"`@
M(#<V-"``("`@("`@(#$R,S0@(#8V,S(V,#$W-3(@(#$R,3(V`"`P````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````'5S=&%R("``:F9G``````````````````````````````````````!J
M9F<`````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````````"-I;F-L=61E(#QS
M=&1I;RYH/@HC:6YC;'5D92`\9&QF8VXN:#X*"G9O:60@:6Y?;6%I;BAV;VED
M*0I["B`@9G!R:6YT9BAS=&1E<G(L(DEN(&EN7VUA:6Y<;B(I.PI]"@IT>7!E
M9&5F('9O:60@*"IL;V%D7V9U;F-T:6]N7W1Y<&4I*'9O:60I.PIS=&%T:6,@
M;&]A9%]F=6YC=&EO;E]T>7!E(&QO861?9G5N8W1I;VX]3E5,3#L*"FEN="!M
M86EN*"D*>R!S=&%T:6,@=F]I9"`J:&%N9&QE/4Y53$P["B`@9G!R:6YT9BAS
M=&1E<G(L(D)E9VEN(&UA:6Y<;B(I.PH@('-Y<W1E;2 at B;&0 at +7-H87)E9"!D
M>6YA;6ET92YO("UO(&1Y;F%M:71E+G-O(BD["B`@:&%N9&QE/61L;W!E;B at B
M+B]D>6YA;6ET92YS;R(L4E1,1%].3U<I.PH@(&EF("AH86YD;&4]/4Y53$PI
M"B`@('L at 9G!R:6YT9BAS=&1E<G(L(F1L;W!E;B!F86EL960@)7-<;B(L9&QE
M<G)O<B at I*3L*("`@("!R971U<FX["B`@('T*("!L;V%D7V9U;F-T:6]N/2AL
M;V%D7V9U;F-T:6]N7W1Y<&4I"B`@("`@("`@(&1L<WEM*&AA;F1L92PB9'EN
M86UI=&4B*3L*("!I9B`H;&]A9%]F=6YC=&EO;CT]3E5,3"D*("`@>R!F<')I
M;G1F*'-T9&5R<BPB9'-Y;2!F86EL960@)7-<;B(L9&QE<G)O<B at I*3L*("`@
M("!R971U<FX["B`@('T*("`H*FQO861?9G5N8W1I;VXI*"D["B`@9G!R:6YT
M9BAS=&1E<G(L(D5N9"!M86EN7&XB*3L*?0H*````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````!E>'!E<FEM96YT+V1Y;F%M:71E+F,`
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````,3`P-C8T(``@("`W
M-C0@`"`@(#<V-"``("`@("`@("`R,#4@(#8V,S(V,#,V,#$@(#$R-S8T`"`P
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````'5S=&%R("``:F9G````````````````````````````````
M``````!J9F<`````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````````````````"-I;F-L
M=61E(#QS=&1I;RYH/@H*=F]I9"!D>6YA;6ET92AV;VED*0I["B`@9G!R:6YT
M9BAS=&1E<G(L(DEN(&1Y;F%M:71E7&XB*3L*("!I;E]M86EN*"D["B`@9G!R
M:6YT9BAS=&1E<G(L(DEN(&1Y;F%M:71E(&%G86EN7&XB*3L*?0H`````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````97AP97)I;65N="]-86ME9FEL90``````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````#$P,#8V-"``("`@-S8T(``@("`W-C0@
M`"`@("`@("`@-#`R("`V-C,R-C$P-S$T("`Q,C0U,``@,```````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````````````````````!U
M<W1A<B`@`&IF9P``````````````````````````````````````:F9G````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````!A;&PZ(&1Y;F%M:71E+F\@
M;6%I;@H*9'EN86UI=&4N;SH at 9'EN86UI=&4N8R!-86ME9FEL90H)9V-C("UG
M("UC(&1Y;F%M:71E+F, at +6\@9'EN86UI=&4N;PH*;6%I;BYO.B!M86EN+F,@
M36%K969I;&4*"6=C8R`M9R`M8R!M86EN+F, at +6\@;6%I;BYO"@IM86EN.B!M
M86EN+F\@36%K969I;&4*"6=C8R`@+6<@+5AL:6YK97(@+44@;6%I;BYO("UO
M(&UA:6X at +6QD;`H*8VQE87(Z"@E<<FT at +68@9'EN86UI=&4N;R!M86EN+F\@
M;6%I;B!D>6YA;6ET92YS;PH`````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
9````````````````````````````````````
`
end

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request at lists.linuxppc.org ]]




More information about the Linuxppc-dev mailing list