This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

simple.c: use _bfd_generic_link_add_symbols


I've checked this in based on a suggestion (two months ago - how time flies)
by Ian Lance Taylor.  bfd_get_relocated_section_contents should not care
what kind of hash table is created, and this patch fixes some assumptions
about what bfd_link_add_symbols may or may not do.  Simpler is better,
right?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-06-05  Daniel Jacobowitz  <drow@mvista.com>

	* simple.c (bfd_simple_get_relocated_section_contents): Call
	_bfd_generic_link_add_symbols instead of bfd_link_add_symbols.

Index: simple.c
===================================================================
RCS file: /cvs/src/src/bfd/simple.c,v
retrieving revision 1.8
diff -u -p -r1.8 simple.c
--- simple.c	6 Apr 2003 08:15:58 -0000	1.8
+++ simple.c	5 Jun 2003 14:06:38 -0000
@@ -243,7 +243,7 @@ bfd_simple_get_relocated_section_content
 
   if (symbol_table == NULL)
     {
-      bfd_link_add_symbols (abfd, &link_info);
+      _bfd_generic_link_add_symbols (abfd, &link_info);
 
       storage_needed = bfd_get_symtab_upper_bound (abfd);
       symbol_table = (asymbol **) bfd_malloc (storage_needed);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]