problems with libpthread at start-up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

I've successfully built and deployed a system using a toolchain I built
using the instructions at:
http://www.ltc.com/~brad/mips/mips-cross-toolchain, which were very
helpful.  This gives a combination of:

binutils-2.11.90.0.25, gcc-3.0.1, glibc-2.2.3, linuxthreads-2.2.3 &
glibc-2.2.3-mips-base-addr-got.diff

A simple 'hello world' programs in both c and c++ work, statically and
dynamically linked, but as soon as I try to link or use pthreads I get
the following (dynamic linking):

#
./helloc                                                                      
[helloc:23] Illegal instruction 00000003 at 2ad0847c
ra=2ab76820                

My ldd shows

# /lib/ld.so.1 --list
./helloc                                                  
        libpthread.so.0 => //lib/libpthread.so.0
(0x2aaaa000)                   
        libc.so.6 => //lib/libc.so.6
(0x2ab05000)                               
        /lib/ld.so.1 => /lib/ld.so.1
(0x55550000)                               
        libgcc_s.so.1 => //lib/libgcc_s.so.1
(0x2acb1000)                       

I'm running on an IDT79RC32334

It seems as though I must have missed a patch or something.  Does anyone
know if there is a fix for this.

BTW, the hello program does not even create a pthread, all I did was add
-lpthread onto the compile line.

-- 
Regards, Stuart

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux