On Mon, Apr 25, 2005 at 12:28:18PM +0200, Rainer Orth wrote:
> If I compare stdexcept.s when building with /usr/sfw/bin/gas vs. gas
> 2.15.96, I see differences like the following:
> 
>  .Ltext0:
>         .weak   _ZTISt11logic_error
> -       .section        .gnu.linkonce.r._ZTISt11logic_error,"a",@progbits
> +       .section        
> .gnu.linkonce.r._ZTISt11logic_error,"aG",@progbits,_ZTISt11logic_error,comdat
> 
> Comparing gcc/auto-host.h between bootstraps with those different gas
> versions, I find:
> 
>  /* Define 0/1 if your assembler supports COMDAT group. */
> -#define HAVE_GAS_COMDAT_GROUP 0
> +#define HAVE_GAS_COMDAT_GROUP 1
> 
> So obviously Sun ld doesn't have the necessary support for COMDAT groups
> (even with GNU ld, a quite recent version seems to be required).
> Unfortunately, gcc's configure.ac doesn't check for this, but should.

So you're using gas with the Sun linker?  Yes, the configure check
definitely needs to test both as and ld.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

Reply via email to