PR24827, Linker loops forever if unterminated multi-line comment in script
authorAlan Modra <amodra@gmail.com>
Sat, 20 Jul 2019 01:17:20 +0000 (10:47 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 20 Jul 2019 01:25:16 +0000 (10:55 +0930)
commit9ab3a74416dac187d56fcf292b39b681d1362dae
tree20e5bf18bbfd27514615b323830afacb902c43e6
parentbcbaec5c407a9301ed987d380ac49426a84c3a0e
PR24827, Linker loops forever if unterminated multi-line comment in script

YY_INPUT returns 0 on end of input, not EOF.

PR 24827
* ldlex.l (comment): Check for 0 return from input(), not EOF.
ld/ChangeLog
ld/ldlex.l