Hello,
On Mon, 4 Mar 2019, Connor Nolan wrote:
> It seems to be fixed now, but when running the created executable it
> errors: "./test": error: Android 5.0 and later only support
> position-independent executables (-fPIE). Does tinycc not support PIE,
Right now TCC can't create position independend executables. On x86-64 it
shouldn't be too hard, as some support for shared libs is there, but
nobody got to it.
Ciao,
Michael.
> and if not how on tell it does? Rerunning with -fPIE does not change
> anything. The contents of test.c are:
>
> #include <stdlib.h>
> int main() {
> printf("Hello World\n");
> return 0;
> }
>
>
> ________________________________
> From: Tinycc-devel <[email protected]>
> on behalf of Connor Nolan <[email protected]>
> Sent: Sunday, March 3, 2019 5:37 PM
> To: [email protected]
> Subject: Re: [Tinycc-devel] TCC segfault on Fedora 29 Klaus Ebbe Grue
>
> This also happens when running it on Android. It works with -run, it doesn't
> when compiling. This uses NDK r19's crt*.o files.
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel