Reduce duplicated symbol_clone_if_forward_ref work
authorAlan Modra <amodra@gmail.com>
Tue, 8 Mar 2022 12:19:52 +0000 (22:49 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Mar 2022 03:40:00 +0000 (14:10 +1030)
commit4afc8894393b31dae6845ef1f6e4cddf9ef5b165
tree63f80e85241147e4253b836817e9064edbc7cd44
parent2e79bbf1e2a546a0686c61a1432d2c1afc24efce
Reduce duplicated symbol_clone_if_forward_ref work

* symbol.c (struct symbol_flags): Add forward_resolved.
(symbol_entry_find): Update needle initialisation.
(symbol_clone_if_forward_ref): Do no work when forward_resolved
is already set.  Set forward_resolved.
gas/symbols.c