I've downloaded binutils with anonymous CVS to build gold. When compiling with gcc 3.4.4, I got a link error. This was due to an inlined method in merge.cc that is also used in a different file. The change I made to fix it is simply not to inline the method (see below).

Regards,
Roland


--
========================================================================
Dr. Roland Baumann                               Staff Software Engineer
CoWare, Inc.                                    Tel: +49(0)241-943788137
Grüner Weg 1                                    Fax: +49(0)241-943788131
52070 Aachen                            Email: [EMAIL PROTECTED]
Germany                                      WWW: http://www.CoWare.com/
========================================================================

LT Design Software GmbH Firmensitz: Grüner Weg 1, 52070 Aachen
Sitz der Gesellschaft: München, Amtsgericht München:  HRB 147824
Geschäftsführer: Dr. Andreas Hoffmann


Index: merge.cc
===================================================================
RCS file: /cvs/src/src/gold/merge.cc,v
retrieving revision 1.28
diff -u -r1.28 merge.cc
--- merge.cc    13 Mar 2008 21:04:21 -0000      1.28
+++ merge.cc    7 Apr 2008 14:30:02 -0000
@@ -140,7 +140,7 @@

 // Get the output offset for an input address.

-inline bool
+bool
 Object_merge_map::get_output_offset(const Merge_map* merge_map,
                                    unsigned int shndx,
                                    section_offset_type input_offset,





_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to