diff options
author | Nick Clifton <nickc@redhat.com> | 2006-01-11 18:11:43 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-01-11 18:11:43 +0000 |
commit | d7f735daf4dc9ea4dba3c2b41b535753ded55ab4 (patch) | |
tree | f0278123cb3220129d4795b9890917e61a70d37e /bfd | |
parent | 8ad7c533ee497f2c6a16cde705a565fcb97dfd12 (diff) | |
download | gdb-d7f735daf4dc9ea4dba3c2b41b535753ded55ab4.zip gdb-d7f735daf4dc9ea4dba3c2b41b535753ded55ab4.tar.gz gdb-d7f735daf4dc9ea4dba3c2b41b535753ded55ab4.tar.bz2 |
* elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry into the
newly (re)allocated map array.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-arm.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index feb3208..aa828d8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-01-11 Nick Clifton <nickc@redhat.com> + + * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry + into the newly (re)allocated map array. + 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com> * peXXigen.c (tbl): Add comma after "HIGH3ADJ". diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index d9648af..9d67e54 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -1,5 +1,5 @@ /* 32-bit ELF support for ARM - Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 + Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -7459,6 +7459,7 @@ elf32_arm_output_symbol_hook (struct bfd_link_info *info, mapcount = arm_data->mapcount + 1; map = arm_data->map; + /* TODO: This may be inefficient, but we probably don't usually have many mapping symbols per section. */ newmap = bfd_realloc (map, mapcount * sizeof (* map)); @@ -7467,8 +7468,8 @@ elf32_arm_output_symbol_hook (struct bfd_link_info *info, arm_data->map = newmap; arm_data->mapcount = mapcount; - map[mapcount - 1].vma = elfsym->st_value; - map[mapcount - 1].type = name[1]; + newmap[mapcount - 1].vma = elfsym->st_value; + newmap[mapcount - 1].type = name[1]; } return TRUE; |