This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

System loader problem?


Hi,
There seems to be a problem with dynamically linked executables created
by egcs on an AIX.4.1.5 (egcs was built with --enable-shared). The
problem remains even when g++ is configured with --with-gnu-ld instead
of the native ld. Apparently the system loader does not understand the .
(dot) special file from the loader section of the libstdc++.a library
(shared library). Any idea about how this problem can be solved? 
Thanks!

kiwi:~/work/C++> oslevel
4.1.5.0
kiwi:~/work/C++> g++ -v
Reading specs from
/usr/Local/install/egcs/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.56/specs
gcc version egcs-2.91.56 19980829 (egcs-1.1 pre-release)
kiwi:~/work/C++> cat test.cc
int main () { return 0; }
kiwi:~/work/C++> g++ -o exe test.cc
kiwi:~/work/C++> exe
Could not load program exe 
Could not load library .
Error was: Permission denied
Exit 255
kiwi:~/work/C++> dump -H exe
...
                        ***Import File Strings***
INDEX  PATH                          BASE               
MEMBER              
0     
/usr/Local/install/egcs/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/egcs-2.91.56:/usr/Local/install/egcs/powerpc-ibm-aix4.1.5.0/lib:/usr/Local/install/egcs/lib:/usr/local/install/binutils-2.9.1/powerpc-ibm-aix4.1.3.0/lib:/lib:/usr/lib:/usr/local/install/binutils-2.9.1/lib:/usr/local/lib:/usr/local/install/binutils-2.9.1/powerpc-ibm-aix4.1.3.0/lib                                        
1                                   
libstdc++.a                             
2                                    libc.a             
shr.o               
kiwi:~/work/C++> dump -H /usr/Local/install/egcs/lib/libstdc++.a
...
                        ***Import File Strings***
INDEX  PATH                          BASE               
MEMBER              
0     
/usr/Local/EGCS/objects/gcc:/usr/Local/install/egcs/powerpc-ibm-aix4.1.5.0/lib:/usr/Local/install/egcs/lib:/usr/local/install/binutils-2.9.1/powerpc-ibm-aix4.1.3.0/lib:/lib:/usr/lib:/usr/local/install/binutils-2.9.1/lib:/usr/local/lib:/usr/local/install/binutils-2.9.1/powerpc-ibm-aix4.1.3.0/lib                                        
1                                    libc.a             
shr.o               
2                                   
.                                       


-- 
        Ovidiu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]