Subject: Re: PR 12312 - madplay dumps core
To: None <Richard.Earnshaw@arm.com>
From: Simon Burge <simonb@wasabisystems.com>
List: port-arm32
Date: 03/19/2001 14:28:26
Richard Earnshaw wrote:

> > 0x2004a730 <III_imdct_l+560>:   ldr     r2, 0x2004ae2c <$$lit_a1+24>
> > 0x2004a734 <loop>:      ldr     ip, [r0]
> > 0x2004a738 <loop+4>:    ldmia   r2!, {r5, r6, r7, r8, r9, sl, fp}
> > 0x2004a73c <loop+8>:    smull   r3, r4, r5, ip
> 
> This code sequence (wherever it's from) is not valid pic code (though the 
> address indicates it's in a shared library).  So the first step is find 
> which file it's from, then find what command was used to compile it and 
> then fix the rules to ensure that -fPIC is passed to the compiler when 
> building shared-library code.

Ahh.  That's the arm-specific code in the libmad library (from
libmad/imdct_l_arm.S).  That should be easy to fix then (famous
last words!).

Thanks.
Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/