Alex Rønne Petersen
10949a6914
std.Target: Update default max Linux version to 6.10.3.
2024-08-09 00:34:54 +02:00
Alex Rønne Petersen
3a1d4dd19e
Update Linux syscalls to 6.10.
2024-08-09 00:34:52 +02:00
Alex Rønne Petersen
c62a2ad2ec
Update Linux kernel headers to 6.10.
2024-08-08 23:39:00 +02:00
John Benediktsson
a854ce3021
std.hash_map: adding a rehash() method ( #19923 )
...
see #17851
2024-08-08 11:59:22 -07:00
Andrew Kelley
8031251c33
Merge pull request #20997 from xxxbxxx/debuglink
...
std.debug.Dwarf: improve loading debug symbol from separate files
2024-08-08 11:06:14 -07:00
Andrew Kelley
cf87a1a7cf
language: add module name field to @src
...
closes #20963
2024-08-08 07:47:14 -07:00
Jan Hendrik Farr
ca012e5b69
std.posix: read on timerfd can return error.Canceled
2024-08-08 01:12:26 -07:00
Andrew Kelley
468b976f63
Merge pull request #20975 from squeek502/cpu-features-update
...
update_cpu_features: Fixes and updates
2024-08-07 22:48:57 -07:00
Xavier Bouchoux
cbdf9bf5ee
std.debug.Dwarf: try to load the debuginfo from the debuginfod cache.
...
The previous mecanism for linux distributions to delivers debug info into `/usr/lib/debug` no longer seems in use.
the current mecanism often is using `debuginfod` (https://sourceware.org/elfutils/Debuginfod.html )
This commit only tries to load already available debuginfo but does not try to make any download requests.
the user can manually run `debuginfod-find debuginfo PATH` to populate the cache.
2024-08-08 07:28:59 +02:00
Xavier Bouchoux
7e966de45e
std.debug.Dwarf: fix loading external debuginfo in the ".debuglink" case.
...
- look up the debuglink file in the directory of the executable file (instead of the cwd)
- fix parsing of debuglink section (the 4-byte alignement is within the file, unrelated to the in-memory address)
2024-08-08 07:15:00 +02:00
Alex Rønne Petersen
21ff35590c
Update glibc start files to 2.40.
2024-08-08 04:41:04 +02:00
Alex Rønne Petersen
0b76be3a01
Update glibc headers to 2.40.
2024-08-08 04:41:04 +02:00
Andrew Kelley
7a7421c749
Merge pull request #20973 from ziglang/fix-json-utf8
...
std.json: fix partial strings getting dropped when multi-byte codepoints span input buffers
2024-08-07 18:37:49 -07:00
Alex Rønne Petersen
bf47cb4379
std.Target: Fix C type alignment calculation for spirv.
2024-08-08 02:41:17 +02:00
Alex Rønne Petersen
1b6b8813cf
Revert "std.Target: Fix ptrBitWidth_cpu_abi() for dxil (64-bit, not 32-bit)."
...
This reverts commit ab154be7f0a89b271686d740f7e50545414a6024.
2024-08-08 02:03:17 +02:00
Alex Rønne Petersen
d415efd68f
Revert "std.Target: Fix C type alignment calculation for dxil."
...
This reverts commit e67388c2e538789aa3e46f625f6e08696093dcdb.
2024-08-08 02:02:50 +02:00
Alex Rønne Petersen
ecf2069e30
Revert "std.Target: Fix C long long size for opencl (8, not 16)."
...
This reverts commit 606d011acf8c2a75ea1485174c2c1d24a612c86b.
2024-08-08 02:02:33 +02:00
Alex Rønne Petersen
93e983489b
Revert "std.Target: Fix C long double size for opencl (8, not 16)."
...
This reverts commit a1d3e567635e79e0fbd8d56225d5098bc6cb8bbb.
2024-08-08 02:02:22 +02:00
Alex Rønne Petersen
1e1cd1f02c
Revert "std.Target: Fix C long double size for amdhsa, amdpal, and mesa3d (8, not 16)."
...
This reverts commit eef499812c37112f4b03bde73a632c23ca753d20.
2024-08-08 02:02:11 +02:00
Andrew Kelley
4381bac792
build runner: output hint when no --port provided
2024-08-07 16:55:46 -07:00
YANG Xudong
b8705ed652
loongarch: various architecture specific fixes ( #20912 )
2024-08-07 13:06:29 -07:00
Pat Tullmann
4d6429fc4f
POSIX link() syscall only takes two arguments (no flags)
...
The signature is documented as:
int link(const char *, const char *);
(see https://man7.org/linux/man-pages/man2/link.2.html or https://man.netbsd.org/link.2 )
And its not some Linux extension, the [syscall
implementation](21b136cc63/fs/namei.c (L4794-L4797) )
only expects two arguments too.
It probably *should* have a flags parameter, but its too late now.
I am a bit surprised that linking glibc or musl against code that invokes
a 'link' with three parameters doesn't fail (at least, I couldn't get any
local test cases to trigger a compile or link error).
The test case in std/posix/test.zig is currently disabled, but if I
manually enable it, it works with this change.
2024-08-07 13:05:42 -07:00
Jeffrey C. Ollie
979fd12be9
Add getppid to std.c and std.os.linux.
...
The std lib is missing getppid, this patch adds it.
2024-08-07 13:03:21 -07:00
Andrew Kelley
0e99f517f2
Merge pull request #20958 from ziglang/fuzz
...
introduce a fuzz testing web interface
2024-08-07 11:55:30 -07:00
Ryan Liptak
e912411fbe
Run update_cpu_features against LLVM 18.1.8
...
- RISCV unaligned-scalar-mem was added in LLVM 18.1.6
- Fixes arm v9_5a confusion
2024-08-07 09:03:05 -07:00
Josh Wolfe
a805454dea
fix partial strings getting dropped when multi-byte codepoints span input buffers
2024-08-07 06:29:34 -04:00
Josh Wolfe
8bec737ca2
fix tests actually checking string contents
2024-08-07 06:29:34 -04:00
Alex Rønne Petersen
f9f8942008
std.os.linux: Move clone() here and stop exporting it.
2024-08-07 01:19:51 -07:00
Andrew Kelley
75f78bfb77
Merge pull request #20922 from alexrp/vdso
...
`std.os.linux`: Fix VDSO for mips, add VDSO for riscv
2024-08-07 01:18:35 -07:00
Andrew Kelley
cd5f673cae
Merge pull request #20909 from alexrp/glibc-riscv
...
Support building glibc for riscv32/riscv64
2024-08-07 01:14:54 -07:00
Andrew Kelley
8184912a98
Merge pull request #20925 from alexrp/windows-tls
...
`std`: Some Windows TLS cleanup and fixes
2024-08-07 01:12:11 -07:00
Alex Rønne Petersen
c0681d6b6e
start: Add sparc32 support.
2024-08-07 01:09:18 -07:00
Alex Rønne Petersen
8cbf091a9a
std.os.linux.start_pie: Add sparc/sparc64 support.
2024-08-07 01:09:06 -07:00
Andrew Kelley
b071b10ce8
Merge pull request #20894 from alexrp/target-cleanup-4
...
`std.Target`: Minor rework to some `isArch()` functions, fix some related issues throughout `std`
2024-08-07 01:08:44 -07:00
Jakub Dóka
a6486492be
std.crypto.ecdsa: use separate function for null seed ( #20953 )
...
Due to the `std.crypto.ecdsa.KeyPair.create` taking and optional of seed, even if the seed is generated, cross-compiling to the environments without standard random source (eg. wasm) (`std.crypto.random.bytes`) will fail to compile.
This commit changes the API of the problematic function and moves the random seed generation to a new utility function.
2024-08-07 01:06:15 -07:00
Alex Rønne Petersen
ebd0c6ffd0
std.zig.target: Add arc-linux-gnu.
...
https://lists.gnu.org/archive/html/info-gnu/2020-08/msg00002.html
2024-08-07 01:03:22 -07:00
Alex Rønne Petersen
00097c3bb8
std.Target: Some corrections and additions to charSignedness().
...
Sourced from GCC backends and some manual testing with clang.
2024-08-07 00:56:02 -07:00
Andrew Kelley
2a651eab45
build runner: --fuzz not yet supported on Windows
2024-08-07 00:48:32 -07:00
Andrew Kelley
40edd11516
std.debug: fix compile errors on windows and macos
2024-08-07 00:48:32 -07:00
Andrew Kelley
8dae629c4f
update branch for latest std.sort changes
2024-08-07 00:48:32 -07:00
Andrew Kelley
529df8c007
libfuzzer: fix looking at wrong memory for pc counters
...
this fix bypasses the slice bounds, reading garbage data for up to the
last 7 bits (which are technically supposed to be ignored). that's going
to need to be fixed, let's fix that along with switching from byte elems
to usize elems.
2024-08-07 00:48:32 -07:00
Andrew Kelley
5f5a7b53a4
wasm zig source rendering: fix annotation location off-by-one
2024-08-07 00:48:32 -07:00
Andrew Kelley
1484f174ea
fuzzer web ui: fail scrolling into view gracefully
2024-08-07 00:48:32 -07:00
Andrew Kelley
bfc2ee03e5
fuzzer web ui: resolve cwd in sources.tar
...
because the wasm code needs to string match against debug information
2024-08-07 00:48:32 -07:00
Andrew Kelley
38227e9289
fuzzer web UI: render PCs with red or green depending on coverage
2024-08-07 00:48:32 -07:00
Andrew Kelley
3d48602c99
fuzzer web UI: annotated PCs in source view
2024-08-07 00:48:32 -07:00
Andrew Kelley
ef4c2193fc
fuzzer web UI: navigate by source location index
...
This will help scroll the point of interest into view
2024-08-07 00:48:32 -07:00
Andrew Kelley
db69641061
fuzzing web ui: make entry point links clickable
2024-08-07 00:48:32 -07:00
Andrew Kelley
e64a00950e
fuzzer web ui: introduce entry points
...
so you can have somewhere to start browsing
2024-08-07 00:48:32 -07:00
Andrew Kelley
6e6164f8a6
fuzzer web ui: add coverage stat
2024-08-07 00:48:32 -07:00