Gold compilation problem with GCC 3.4.4
Ian Lance Taylor
iant@google.com
Tue Apr 8 18:47:00 GMT 2008
"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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 528 bytes
Desc: Remove inline qualifier
URL: <https://sourceware.org/pipermail/binutils/attachments/20080408/4d2ecc72/attachment.bin>
More information about the Binutils
mailing list