This is PR30387:
From PR description:
We fail to parse
SECTIONS { foo : { *(sec0 EXCLUDE_FILE (zed1.o) sec1 EXCLUDE_FILE (zed2.o) sec2 ) } }
The semantics according to bfd are:
- Include sec1 from every file but zed1.o
- Include sec2 from every file but zed2.o
- Include sec0 from every file
Patch implements the support.
It's not clear to me what the grammar of this thing is.
Does the above pattern mean A, B, D except those matching C, and E? Or A, B, D except those matching C, E except those matching C?
What if the pattern is this?