diff options
author | Alan Modra <amodra@gmail.com> | 2008-07-28 06:46:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-07-28 06:46:31 +0000 |
commit | 9a008db36edc557367211620903de9f39733169a (patch) | |
tree | 1604d4c0a2270cb622c4f4745e4a84a75bc09b76 /bfd/elf32-avr.c | |
parent | 437c2fb7a12caa380086560b3929b0a6d7b51764 (diff) | |
download | gdb-9a008db36edc557367211620903de9f39733169a.zip gdb-9a008db36edc557367211620903de9f39733169a.tar.gz gdb-9a008db36edc557367211620903de9f39733169a.tar.bz2 |
* elf32-arm.c (arm_map_one_stub): Declare variables at beginning
of block.
* elf32-avr.c (get_local_syms): Likewise.
Diffstat (limited to 'bfd/elf32-avr.c')
-rw-r--r-- | bfd/elf32-avr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-avr.c b/bfd/elf32-avr.c index ee2afab..bab5ca0 100644 --- a/bfd/elf32-avr.c +++ b/bfd/elf32-avr.c @@ -2590,6 +2590,7 @@ get_local_syms (bfd *input_bfd, struct bfd_link_info *info) unsigned int bfd_indx; Elf_Internal_Sym *local_syms, **all_local_syms; struct elf32_avr_link_hash_table *htab = avr_link_hash_table (info); + bfd_size_type amt; if (htab == NULL) return -1; @@ -2597,7 +2598,7 @@ get_local_syms (bfd *input_bfd, struct bfd_link_info *info) /* We want to read in symbol extension records only once. To do this we need to read in the local symbols in parallel and save them for later use; so hold pointers to the local symbols in an array. */ - bfd_size_type amt = sizeof (Elf_Internal_Sym *) * htab->bfd_count; + amt = sizeof (Elf_Internal_Sym *) * htab->bfd_count; all_local_syms = bfd_zmalloc (amt); htab->all_local_syms = all_local_syms; if (all_local_syms == NULL) |