Re: [PATCH] x86/tools: Use POSIX-compliant syntax for empty regex groups

2021-02-03 Thread Borislav Petkov
On Fri, Dec 25, 2020 at 10:30:43PM +0900, John Millikin wrote: > The syntax for POSIX regexes technically doesn't allow empty branches in > conditional match groups. GNU libc accepts them as equivalent to `()', > but other libc implementations (e.g. macOS libc) reject them with a > parse error. >

[PATCH] x86/tools: Use POSIX-compliant syntax for empty regex groups

2020-12-25 Thread John Millikin
The syntax for POSIX regexes technically doesn't allow empty branches in conditional match groups. GNU libc accepts them as equivalent to `()', but other libc implementations (e.g. macOS libc) reject them with a parse error. Changing to compliant syntax, `(|_sym)' to `(()|_sym)', lets the `relocs'