mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
* config/tc-ia64.c (dot_endp): Set function symbol sizes.
* config/obj-elf.c (obj_elf_size): When size is constant, free and clear symbol_get_obj(sym)->size if any.
This commit is contained in:
@ -1453,7 +1453,14 @@ obj_elf_size (ignore)
|
||||
sym = symbol_find_or_make (name);
|
||||
*p = c;
|
||||
if (exp.X_op == O_constant)
|
||||
S_SET_SIZE (sym, exp.X_add_number);
|
||||
{
|
||||
S_SET_SIZE (sym, exp.X_add_number);
|
||||
if (symbol_get_obj (sym)->size)
|
||||
{
|
||||
xfree (symbol_get_obj (sym)->size);
|
||||
symbol_get_obj (sym)->size = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
symbol_get_obj (sym)->size =
|
||||
|
Reference in New Issue
Block a user