Odin
Odin copied to clipboard
Compiling with `-no-crt` on Linux causes a segmentation violation
Context
Compiling any Odin program with the no-crt -default-to-panic-allocator build flags on Linux causes that program to give a segmentation violation.
odin report output:
Odin: dev-2024-12
OS: Alpine Linux v3.21, Linux 6.12.2-0-lts
CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
RAM: 7607 MiB
Backend: LLVM 19.1.4
Expected Behavior
For the following program:
package example
import "core:fmt"
main :: proc() {
fmt.println("lorem ipsum")
}
It is expected that it prints lorem ipsum when building with odin build . -no-crt -default-to-panic-allocator.
Current Behavior
segmentation violation