--enable-shared doesn't work on Sun-3

Toon Moene toon@moene.indiv.nluug.nl
Mon Aug 10 09:28:00 GMT 1998

>  The problem is gas, not egcs.

Is it ?

>  gas does not accept the PIC code generated for m68ks
>  running StunOS; the StunOS assembler should support jbsr
>  blah,a1 syntax.

Note that on my m68k-next-nextstep3 system exactly the same code is  
generated, and the native compiler on my system _is_ gas.

I personally got a useful reply by John Vickers (don't know why he  
didn't sent it to the list):

>  I think egcs is doing the right thing for the sun
>  assembler, which recognises jbsr
>  _demangle_template_template_parm,a1 as some kind of
>  voodoo.  I think there are comments in the md about this.
>  I guess the nature of the voodoo could be figured out by
>  playing with sun objdump & sun as.

I don't know what to think of this; either:

1. The S[t]un assembler recognises the jbsr aap,a1 construct as
   special and generate the right stuff for PIC - then we can't
   do nothing here, although Kate could try to use the original
   Sun assembler.


2. jbsr aap,a1 is simply jbsr aap(a1) in Motorola/MIT syntax, and
   then egcs can be repaired to generate the correct assembler.


More information about the Gcc-bugs mailing list