This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold patch committed: Remove assertion
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 13 Sep 2011 17:54:49 +0200
- Subject: Re: gold patch committed: Remove assertion
- References: <mcripoxiryl.fsf@coign.corp.google.com>
Hello Ian,
On Mon, 12 Sep 2011 19:35:46 +0200, Ian Lance Taylor wrote:
> --- object.cc 1 Aug 2011 18:25:21 -0000 1.147
> +++ object.cc 12 Sep 2011 17:34:11 -0000
> @@ -1582,8 +1582,6 @@ Sized_relobj_file<size, big_endian>::do_
> p != eh_frame_sections.end();
> ++p)
> {
> - gold_assert(external_symbols_offset != 0);
> -
> unsigned int i = *p;
> const unsigned char* pshdr;
> pshdr = section_headers_data + i * This::shdr_size;
object.cc:1152:23: error: variable ‘external_symbols_offset’ set but not used [-Werror=unused-but-set-variable]
(Fedora 16 x86_64)
Thanks,
Jan