aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/CheckObject.zig
diff options
context:
space:
mode:
authorEric Joldasov <bratishkaerik@landless-city.net>2024-04-23 23:19:19 +0500
committerAndrew Kelley <andrew@ziglang.org>2024-04-23 17:21:01 -0700
commit857c1d4ff2513dd29f10ef28a2bfbe61818dc1c4 (patch)
treef832e87a0becbcad74afb2cb37aa5a4b68e969b6 /lib/std/Build/Step/CheckObject.zig
parent7cf3167e989374d21280a29e29ed089bee9293fd (diff)
downloadzig-857c1d4ff2513dd29f10ef28a2bfbe61818dc1c4.tar.gz
zig-857c1d4ff2513dd29f10ef28a2bfbe61818dc1c4.zip
std.zig.system: fix ELF file search
* Adjust buffer length a bit. * Fix detecting if file is a script. Logic below was unreachable, because 99% of scripts failed "At least 255 bytes long" check and were detected as ELF files. It should be "At least 4" instead (minimum value of "ELF magic length" and "smallest possible interpreter path length"). * Fix parsing interpreter path, when text after shebang: 1. does not have newline, 2. has leading spaces and tabs, 3. separates interpreter and arguments by tab or NUL. * Remove empty error set from `defaultAbiAndDynamicLinker`. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
Diffstat (limited to 'lib/std/Build/Step/CheckObject.zig')
0 files changed, 0 insertions, 0 deletions