nixpkgs/pkgs/stdenv
aszlig b25b6e0c75
stdenv: Improve ELF detection for isELF
The isELF function only checks whether ELF is contained within the first
4 bytes of the file, which is a bit fuzzy and will also return
successful if it's a text file starting with ELF, for example:

  ELF headers
  -----------

  Some text here about ELF headers...

So instead, we're now doing a precise match on \x7fELF.

Signed-off-by: aszlig <aszlig@nix.build>
Acked-by: @Ericson2314
Closes: https://github.com/NixOS/nixpkgs/pull/47244
2018-09-25 06:55:18 +02:00
..
cross stdenv linux, stdenv cross: Harmonize extraNativeBuildInputs 2018-09-18 16:27:04 -04:00
custom top-level: {build,host,target}Platform are defined in the stdenv instead 2017-07-07 12:55:02 -04:00
cygwin Fix invalid Baseaddress must be > 0x200000000 on cygwin 2018-04-14 14:06:09 +02:00
darwin Merge pull request #47233 from oxij/tree/mass-rebuild-noop-cleanups 2018-09-25 00:04:52 -04:00
freebsd fetchurl: cleanup, better errors 2018-02-18 14:24:53 +00:00
generic stdenv: Improve ELF detection for isELF 2018-09-25 06:55:18 +02:00
linux bintools-wrapper, cc-wrapper, stdenv: infer propagateDoc automatically 2018-09-23 17:29:56 +00:00
native [bot] treewide: remove unused 'inherit' in let blocks 2018-07-20 19:38:19 +00:00
nix cc-wrapper: Use stdenvNoCC to build 2017-09-26 14:08:21 -04:00
adapters.nix stdenv adapter: Keep configureFlags a list 2018-08-03 17:06:03 -04:00
booter.nix treewide: Depend on targetPackages.stdenv.cc.bintools instead of binutils directly 2017-11-05 17:10:53 -05:00
common-path.nix bzip2: split into multiple outputs, refactor 2015-04-18 19:32:52 +02:00
default.nix [RFC] ppc64le enablement (#45340) 2018-08-21 15:31:34 -04:00