Re: Fix hash table mixup in bfd_simple_get_relocated_section_content

Daniel Jacobowitz
2003-09-17T16:09:58Z

On Wed, Sep 17, 2003 at 06:04:05PM +0200, Andreas Schwab wrote:
> bfd_simple_get_relocated_section_content uses the generic linker
> interface, so it should also use the generic_link_hash_table.

Hmm, this seems right to me.

> 2003-09-17 Andreas Schwab <schwab@suse.de>
>
> * 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."
>

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer