* PR26501, ASAN: tic54x_undefined_symbol tc-tic54x.c:5015
@ 2020-08-25 13:31 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-08-25 13:31 UTC (permalink / raw)
To: binutils
PR26501
* gas/config/tc-tic54x.c (tic54x_undefined_symbol): Properly treat
misc_symbol_hash entries without values.
diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c
index 5fe1b2f92e..cc2d2c048e 100644
--- a/gas/config/tc-tic54x.c
+++ b/gas/config/tc-tic54x.c
@@ -5008,14 +5008,9 @@ tic54x_undefined_symbol (char *name)
if ((sym = (tic54x_symbol *) str_hash_find (cc_hash, name)) != NULL
|| (sym = (tic54x_symbol *) str_hash_find (cc2_hash, name)) != NULL
|| (sym = (tic54x_symbol *) str_hash_find (cc3_hash, name)) != NULL
- || (sym = (tic54x_symbol *) str_hash_find (misc_symbol_hash,
- name)) != NULL
- || (sym = (tic54x_symbol *) str_hash_find (sbit_hash, name)) != NULL)
- {
- return symbol_new (name, reg_section, &zero_address_frag, sym->value);
- }
-
- if ((sym = (tic54x_symbol *) str_hash_find (reg_hash, name)) != NULL
+ || str_hash_find (misc_symbol_hash, name) != NULL
+ || (sym = (tic54x_symbol *) str_hash_find (sbit_hash, name)) != NULL
+ || (sym = (tic54x_symbol *) str_hash_find (reg_hash, name)) != NULL
|| (sym = (tic54x_symbol *) str_hash_find (mmreg_hash, name)) != NULL
|| !strcasecmp (name, "a")
|| !strcasecmp (name, "b"))
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-25 13:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 13:31 PR26501, ASAN: tic54x_undefined_symbol tc-tic54x.c:5015 Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).