From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25097 invoked by alias); 17 Sep 2003 16:04:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25090 invoked from network); 17 Sep 2003 16:04:14 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 17 Sep 2003 16:04:14 -0000 Received: from Hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id BC9B31619927 for ; Wed, 17 Sep 2003 18:04:13 +0200 (CEST) To: gdb-patches@sources.redhat.com Subject: Fix hash table mixup in bfd_simple_get_relocated_section_content From: Andreas Schwab X-Yow: I just put lots of the EGG SALAD in the SILK SOCKS -- Date: Wed, 17 Sep 2003 16:04:00 -0000 Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2003-09/txt/msg00370.txt.bz2 bfd_simple_get_relocated_section_content uses the generic linker interface, so it should also use the generic_link_hash_table. Andreas. 2003-09-17 Andreas Schwab * simple.c (bfd_simple_get_relocated_section_contents): Use _bfd_generic_link_hash_table_create instead of bfd_link_hash_table_create. --- bfd/simple.c.~1.9.~ 2003-06-05 16:07:52.000000000 +0200 +++ bfd/simple.c 2003-09-17 17:32:49.000000000 +0200 @@ -198,7 +198,7 @@ bfd_simple_get_relocated_section_content memset (&link_info, 0, sizeof (link_info)); link_info.input_bfds = abfd; - link_info.hash = bfd_link_hash_table_create (abfd); + link_info.hash = _bfd_generic_link_hash_table_create (abfd); link_info.callbacks = &callbacks; callbacks.warning = simple_dummy_warning; callbacks.undefined_symbol = simple_dummy_undefined_symbol; -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."