[build] Properly set progbits/nobits for Solaris/SPARC as
Paolo Bonzini
bonzini@gnu.org
Tue Jan 29 14:39:00 GMT 2013
Il 29/01/2013 13:42, Rainer Orth ha scritto:
> As originally reported as binutils PR ld/15057, several gfortran tests
> are failing on Solaris/SPARC with Sun as and GNU ld like this:
>
> FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib -O2 -lcaf_single (test for excess errors)
> Excess errors:
> /vol/gcc/bin/gld-2.23.1: warning: section `.bss' type changed to PROGBITS
>
> As analyzed in the PR, this happens because .bss.* sections are not
> marked as SHT_NOBITS when Sun as is in use. The following patch fixes
> this; it should be low-risk since the result of the configure test
> (necessary since only Solaris 10/SPARC as added #nobits/#progbits
> support) is only used in a Solaris-specific function.
>
> Bootstrapped without regressions on sparc-sun-solaris2.11 (as/gld,
> gas/gld in progress), ok for mainline?
Ok.
Paolo
More information about the Gcc-patches
mailing list