]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Re: Fix tight loop on recursively-defined symbols
authorAlan Modra <amodra@gmail.com>
Mon, 18 May 2020 04:00:59 +0000 (13:30 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 18 May 2020 08:13:42 +0000 (17:43 +0930)
commit8524bb5bd28a9275ea38eaf3187badd13d15f5f2
tree35dbcdf77db799f929813bfa0c2ad11947ac4c64
parente2f43708cc6b7afaf402a58c6cf64614558b1cfe
Re: Fix tight loop on recursively-defined symbols

sy_resolving ought to not be set for a struct local_symbol, but it is
apparent from local_symbol_make that the field is not initialised.

* symbols.c (resolve_symbol_value): Invoke LOCAL_SYMBOL_CHECK
before looking at add_symbol->sy_flags.sy_resolving.

(cherry picked from commit d402189f2faa0aaa9fb8ad4669fdf0059946cd8a)
gas/ChangeLog
gas/symbols.c