mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 01:45:51 +08:00
* elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry into the
newly (re)allocated map array.
This commit is contained in:
@ -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>
|
2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
|
||||||
|
|
||||||
* peXXigen.c (tbl): Add comma after "HIGH3ADJ".
|
* peXXigen.c (tbl): Add comma after "HIGH3ADJ".
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* 32-bit ELF support for ARM
|
/* 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.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
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;
|
mapcount = arm_data->mapcount + 1;
|
||||||
map = arm_data->map;
|
map = arm_data->map;
|
||||||
|
|
||||||
/* TODO: This may be inefficient, but we probably don't usually have many
|
/* TODO: This may be inefficient, but we probably don't usually have many
|
||||||
mapping symbols per section. */
|
mapping symbols per section. */
|
||||||
newmap = bfd_realloc (map, mapcount * sizeof (* map));
|
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->map = newmap;
|
||||||
arm_data->mapcount = mapcount;
|
arm_data->mapcount = mapcount;
|
||||||
|
|
||||||
map[mapcount - 1].vma = elfsym->st_value;
|
newmap[mapcount - 1].vma = elfsym->st_value;
|
||||||
map[mapcount - 1].type = name[1];
|
newmap[mapcount - 1].type = name[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user