All of lore.kernel.org
 help / color / mirror / Atom feed
* problems with libpthread at start-up
@ 2001-12-14 10:50 Stuart Hughes
  0 siblings, 0 replies; only message in thread
From: Stuart Hughes @ 2001-12-14 10:50 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-14 11:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-14 10:50 problems with libpthread at start-up Stuart Hughes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.