Right now, scanelf is used by portage to check for LDFLAGS ignorance through the existence of .hash section. I'd like to add checking for CFLAGS ignorance through the lack of .GNU.command.line section when -frecord-gcc-switches is used. For that particular check, it'd be great if scanelf had some kind of 'reverse -k' switch reporting all ELF files which don't have the specified section.
Ah, I found a simple enough way to do with a little help of grobian. Nevermind.
scanelf -k '!.GNU.command.line'