Oops - fix mistake in previous delta where unused variable 'nsyms' was
authorNick Clifton <nickc@redhat.com>
Fri, 13 Oct 2000 20:41:08 +0000 (20:41 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 13 Oct 2000 20:41:08 +0000 (20:41 +0000)
deleted, but along with its (necessary) call to bfd_canonicalize_symtab.

ld/ChangeLog
ld/emultempl/pe.em

index 56b86db2f22d3d261bea57ab7730c70209ad5c53..b048ec455be3fdf5a44389579f540c68cf3fa705 100644 (file)
@@ -1,7 +1,8 @@
 2000-10-13  Nick Clifton  <nickc@redhat.com>
 
        * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
-       local variables - they are not used.
+       local variables - they are not used, but leave in the call to
+       bfd_canonicalize_symtab.
        (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
        pe_dll_search_prefix.
 
index 99829a20371b62eebd64c40db084ac73ba7cb542..bbf0c942e2677c00c287b9e403ee5cdbede41f60 100644 (file)
@@ -855,11 +855,18 @@ gld_${EMULATION_NAME}_after_open ()
                for (sec = is->the_bfd->sections; sec; sec = sec->next)
                  {
                    int i;
-                   int symsize = bfd_get_symtab_upper_bound (is->the_bfd);
-                   asymbol **symbols = (asymbol **) xmalloc (symsize);
-                   int relsize = bfd_get_reloc_upper_bound (is->the_bfd, sec);
-                   arelent **relocs = (arelent **) xmalloc ((size_t) relsize);
-                   int nrelocs = bfd_canonicalize_reloc (is->the_bfd, sec,
+                   int symsize;
+                   asymbol **symbols;
+                   int relsize;
+                   arelent **relocs;
+                   int nrelocs;
+                   
+                   symsize = bfd_get_symtab_upper_bound (is->the_bfd);
+                   symbols = (asymbol **) xmalloc (symsize);
+                   bfd_canonicalize_symtab (is->the_bfd, symbols);
+                   relsize = bfd_get_reloc_upper_bound (is->the_bfd, sec);
+                   relocs = (arelent **) xmalloc ((size_t) relsize);
+                   nrelocs = bfd_canonicalize_reloc (is->the_bfd, sec,
                                                          relocs, symbols);
                    for (i=0; i<nrelocs; i++)
                      {