summaryrefslogtreecommitdiffstats
path: root/ld/emultempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-10-13 20:41:08 +0000
committerNick Clifton <nickc@redhat.com>2000-10-13 20:41:08 +0000
commit102c86f873ed268a64171df595ed9eadb54c7e24 (patch)
treeb8a1632008cdc42b62b3f6e69c57d818297734cc /ld/emultempl
parentae093f962b34d557f11c7d6cb5112dd3623983b2 (diff)
downloadppe42-binutils-102c86f873ed268a64171df595ed9eadb54c7e24.tar.gz
ppe42-binutils-102c86f873ed268a64171df595ed9eadb54c7e24.zip
Oops - fix mistake in previous delta where unused variable 'nsyms' was
deleted, but along with its (necessary) call to bfd_canonicalize_symtab.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/pe.em17
1 files changed, 12 insertions, 5 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 99829a2037..bbf0c942e2 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -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++)
{
OpenPOWER on IntegriCloud