Fangrui Song 16be2c0555
[ELF] Add VersionNode lexer state for better version script parsing
... so that `local:*;` will be lexed as three tokens instead of a single
one in a version node. This is used by both version scripts and dynamic
lists. Fix #174363

In addition, clean up special code for space-separated `local :` and `global :`.

This patch brings our lexer behavior closer to GNU ld. While GNU ld
additionally rejects more characters like `~/+,=`, we don't implement
this additional validation.

Pull Request: https://github.com/llvm/llvm-project/pull/174530
2026-01-06 22:19:44 -08:00
..
2024-07-28 11:43:27 -07:00
2024-07-26 16:51:42 -07:00
2024-07-27 14:46:41 -07:00