tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] TCC segfault on Fedora 29 Klaus Ebbe Grue


From: Michael Matz
Subject: Re: [Tinycc-devel] TCC segfault on Fedora 29 Klaus Ebbe Grue
Date: Fri, 8 Mar 2019 17:02:08 +0000 (UTC)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)

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 <address@hidden> on behalf of Connor Nolan <address@hidden>
> Sent: Sunday, March 3, 2019 5:37 PM
> To: address@hidden
> 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.
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]