This is https://bugs.llvm.org/show_bug.cgi?id=37881,
it is about that LLD currently does not report any invalid/unsupported -z options.
There are few possible ways how this can be supported. A whitelist would be straightforward
but it does not look nice to list all of these options again since such list would be large.
The idea of this patch is to claim the options we check in the driver and hence mark them as used.
All unclaimed options than can be treated as unsupported and we can report them.
I'd make this function to take just one Key instead of arbitrary number of keys. I'd also rename this just claim.