gcc-4.4.7 warning fixes
* config/obj-elf.c (obj_elf_change_section): Rename variable to avoid shadowing warning. * symbols.c (symbol_entry_find): Init all symbol_flags fields.
This commit is contained in:
parent
529908cbd0
commit
e37c930f9e
@ -1,3 +1,9 @@
|
||||
2020-09-30 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* config/obj-elf.c (obj_elf_change_section): Rename variable to
|
||||
avoid shadowing warning.
|
||||
* symbols.c (symbol_entry_find): Init all symbol_flags fields.
|
||||
|
||||
2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
|
||||
|
||||
* NEWS: TRBE, ETE, ETMv4 and Cortex-X1 news updates.
|
||||
|
@ -762,8 +762,8 @@ obj_elf_change_section (const char *name,
|
||||
/* We could be repurposing an undefined symbol here: make sure we
|
||||
reset sy_value to look like other section symbols in order to avoid
|
||||
trying to incorrectly resolve this section symbol later on. */
|
||||
static const expressionS expr = { .X_op = O_constant };
|
||||
symbol_set_value_expression (secsym, &expr);
|
||||
static const expressionS exp = { .X_op = O_constant };
|
||||
symbol_set_value_expression (secsym, &exp);
|
||||
symbol_set_bfdsym (secsym, sec->symbol);
|
||||
}
|
||||
else
|
||||
|
@ -196,7 +196,8 @@ static void *
|
||||
symbol_entry_find (htab_t table, const char *name)
|
||||
{
|
||||
hashval_t hash = htab_hash_string (name);
|
||||
symbol_entry_t needle = { { { 0 }, hash, name, 0, 0, 0 } };
|
||||
symbol_entry_t needle = { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||
hash, name, 0, 0, 0 } };
|
||||
return htab_find_with_hash (table, &needle, hash);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user