patchelf 0.18.0 supports to print, clear and set executable stack state on binary.
"--print-execstack" Prints the state of the executable flag of the GNU_STACK program header, if present.
"--clear-execstack" Clears the executable flag of the GNU_STACK program header, or adds a new header.
"--set-execstack" Sets the executable flag of the GNU_STACK program header, or adds a new header.