This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Simple bug fix in gold linker.
- From: Ian Lance Taylor <iant at google dot com>
- To: Sriraman Tallam <tmsriram at google dot com>
- Cc: binutils <binutils at sourceware dot org>, Easwaran Raman <eraman at google dot com>
- Date: Fri, 25 May 2012 15:36:38 -0700
- Subject: Re: Simple bug fix in gold linker.
- References: <CAAs8Hmx1+KR00T2M8zYxq2xrwHfXory6cu+mpjdeRkjhVRtaeQ@mail.gmail.com>
Sriraman Tallam <tmsriram@google.com> writes:
> Patch ok? This was causing an uninitialized variable error while building.
>
> * symtab.cc (Symbol_table::add_undefined_symbol_from_command_line):
> Initialize oldsym to prevent uninitialized variable errors.
Instead of this, change Symbol_table::define_special_symbol to set
*poldsym = NULL at the top of the function. That patch is approved if
it fixes the problem.
Ian