This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Gold compilation problem with GCC 3.4.4


"Remko TronÃon" <remko@el-tramo.be> writes:

> When building today's gold CVS version with gcc-3.4.4, I run into an
> unresolved symbol at the linking stage:
>
>      libgold.a(reloc.o)(.gnu.linkonce.t._ZNK4gold19Merged_symbol_valueILi32EE25value_from_output_sectionEPKNS_6RelobjEjj+0x2b):
> In function `gold::Merged_symbol_value<32>::value_from_output_section(gold::Relobj
> const*, unsigned int, unsigned int) const':
> ../../binutils/gold/reloc.cc:1134: undefined reference to
> `gold::Object_merge_map::get_output_offset(gold::Merge_map const*,
> unsigned int, int, int*)'
>
> Removing the 'inline' from Object_merge_map::get_output_offset solves
> the linker error.

Thanks.  I committed this patch which should fix the problem.

Ian


2008-04-08  Ian Lance Taylor  <iant@google.com>

	* merge.cc (Object_merge_map::get_output_offset): Remove inline
	qualifier.


Index: merge.cc
===================================================================
RCS file: /cvs/src/src/gold/merge.cc,v
retrieving revision 1.28
diff -p -u -r1.28 merge.cc
--- merge.cc	13 Mar 2008 21:04:21 -0000	1.28
+++ merge.cc	8 Apr 2008 18:46:10 -0000
@@ -140,7 +140,7 @@ Object_merge_map::add_mapping(const Merg
 
 // 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,

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