[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] execve being called with wrong path
From: |
Yao Zi |
Subject: |
Re: [Tinycc-devel] execve being called with wrong path |
Date: |
Wed, 9 Oct 2024 08:05:12 +0000 |
On Wed, Oct 09, 2024 at 08:00:05AM +0000, Yao Zi via Tinycc-devel wrote:
> On Mon, Oct 07, 2024 at 05:44:47PM -0300, Brian Mayer wrote:
> > 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.
>
> And could you try linking your program with musl statically? Maybe
> something like
>
> tcc main.c -o main -static
Sorry, I didn't noticed that you had disabled static libraries. Another
way to check is simply adding a global variable in your main.c, like
#include <stdio.h>
int foo;
void main(void) {
printf("hello from lin0\n");
}
Cheers,
Yao Zi