[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Link error when building gold with gcc-3.4.4

From: Roland Baumann
Subject: Link error when building gold with gcc-3.4.4
Date: Mon, 07 Apr 2008 16:36:00 +0200
User-agent: Thunderbird (X11/20080213)

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).


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: address@hidden
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
 Object_merge_map::get_output_offset(const Merge_map* merge_map,
                                    unsigned int shndx,
                                    section_offset_type input_offset,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]