You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, just to note, export fn _start() noreturn {} is incorrect. {} returns void. You have to have an exit function that exits the code. This does not seem to change the outcome (it still crashes), but I thought it would be good to note.
Hmm, I can't reproduce either using build-obj but with build-exe I get a crash somewhere else in the linker:
thread 40117 panic: attempt to use null value
link/Elf.zig:2322:17: 0x7d3c295 in getDeclPhdrIndex (zig)
link/Elf.zig:2637:47: 0x7d4e718 in updateDeclExports (zig)
Activity
g-w1 commentedon Nov 14, 2020
Hi, just to note,
export fn _start() noreturn {}is incorrect. {} returns void. You have to have an exit function that exits the code. This does not seem to change the outcome (it still crashes), but I thought it would be good to note.xackus commentedon Nov 14, 2020
I know, this is just a minimized example, but thanks anyway.
alichraghi commentedon Nov 16, 2022
i can't reproduce this anymore.
Vexu commentedon Nov 16, 2022
The crash only happens in debug builds of the compiler.
alichraghi commentedon Nov 16, 2022
im using a debug build
Vexu commentedon Nov 16, 2022
Hmm, I can't reproduce either using
build-objbut withbuild-exeI get a crash somewhere else in the linker:alichraghi commentedon Nov 16, 2022
now i used a newer version (
0.11.0-dev.4785+f5f1f8c66) and i get the same crash. but a bit older version (0.10.0-dev.4560+828735ac0) works fine