|
From: | Brian Mayer |
Subject: | Re: [Tinycc-devel] execve being called with wrong path |
Date: | Mon, 7 Oct 2024 17:44:47 -0300 |
The program being compiled: # cat main.c #include <stdio.h> void main(void) { printf("hello from lin0\n"); } I'm using musl-1.2.5 compiled on Arch Linux with GCC on x86_64 with static libs disabled. I compiled tcc with: ./configure --prefix=/ --cc="$CC" --config-musl --elfinterp=/lib/libc.so --sysincludepaths=/include --libpaths=/lib --crtprefix=/lib --disable-static CC points to musl-gcc built alongside musl. After this I copied everything to the corresponding folders in a separate partition and booted from it. In that system I compiled main.c with the built tcc.
[Prev in Thread] | Current Thread | [Next in Thread] |