Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 395551

Summary: app-misc/pax-utils: scanelf, please support matching ELF files without the specified section
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: HardenedAssignee: SpanKY <vapier>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: dev-portage, solar
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-21 15:56:32 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-21 16:59:51 UTC
Ah, I found a simple enough way to do with a little help of grobian. Nevermind.
Comment 2 SpanKY gentoo-dev 2011-12-21 17:12:26 UTC
scanelf -k '!.GNU.command.line'