From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: PR26501, ASAN: tic54x_undefined_symbol tc-tic54x.c:5015
Date: Tue, 25 Aug 2020 23:01:39 +0930 [thread overview]
Message-ID: <20200825133139.GB15695@bubble.grove.modra.org> (raw)
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
reply other threads:[~2020-08-25 13:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200825133139.GB15695@bubble.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).