This might work for your build script, but there are platforms on which some ELF executables may give unexpected results. e.g.


$ uname -a
Linux u18-04-desktop 4.15.0-36-generic #39-Ubuntu SMP...