This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Don't use weak linkage for symbols in COMDAT groups


Daniel Jacobowitz wrote:
On Sat, Feb 26, 2005 at 11:22:49PM -0500, Andrew Pinski wrote:

Before this change, a::f in the TU of file b and a were both marked as weak so
that they would not complain when you link the two files together.


Why isn't a::f in a COMDAT group, anyway?

probably because the latest releast binutils does this on i686 during configure

configure:13492: checking assembler for COMDAT group support
configure:13506: /usr/local/bin/as --fatal-warnings -o conftest.o conftest.s >&5
/home/nathan/egcs/HEAD/gcc/gcc/configure: line 1:  3254 Segmentation fault      (core dumped) $gcc_cv_as --fatal-warnings -o conftest.o conftest.s 1>&5
configure:13509: $? = 139
configure: failed program was
.section .text,"axG",@progbits,.foo,comdat
configure:13520: result: no
configure:13526: checking assembler for COMDAT group support
configure:13540: /usr/local/bin/as --fatal-warnings -o conftest.o conftest.s >&5
/home/nathan/egcs/HEAD/gcc/gcc/configure: line 1:  3260 Segmentation fault      (core dumped) $gcc_cv_as --fatal-warnings -o conftest.o conftest.s 1>&5
configure:13543: $? = 139
configure: failed program was
.section .text,"axG",%progbits,.foo,comdat
configure:13554: result: no

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]