From: SUGIOKA T. <su...@it...> - 2002-01-24 07:23:29
|
At 21:21 02/01/23 +0200, Matan <ma...@sv...> wrote: >On Wed, 23 Jan 2002, Jordan Pan wrote: > >> Again I still face problem in the C++ dynamic link. I follow the >> patch for GCC and the new glibc 2.2.5(pre) build for Qt/embedded. It >> seems the compilation stage is passed, but fail in the runtime. Same >> problem is cleared when we link as static. > > >Might this be related to a c++ dynamic link problem I see? > >The attached file shows a simple c++ program that works ok when linked >statically, but segfaults when linked dynamically. The dynamic version >does work correctly on x86 processor. This problem seems to be related on struct return from shared library. It is not only c++ specific, but also occurs on c program. I have uploaded updated binutils RPM packages. Thanks Kojima-san for the patch. http://www.sh-linux.org/rpm/RPMS/i386/Laser5-6.4/binutils-sh-linux-2.11.2-4.i386.rpm http://www.sh-linux.org/rpm/RPMS/i386/RedHat7.1/binutils-sh-linux-2.11.2-4.i386.rpm http://www.sh-linux.org/rpm/SRPMS/binutils-2.11.2-4.src.rpm Please retry with them. ---- SUGIOKA Toshinobu |