tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] How to build a static executable ?


From: Issam Anour
Subject: [Tinycc-devel] How to build a static executable ?
Date: Mon, 29 Sep 2014 13:39:27 +0000

Hi;

I didn't manage to build a simple Hello world program statically.

main.c

#include <stdio.h>

int main(int argc, char* argv[]) {

   printf("Hello world!\n");
   return 0;
}


tcc -static main.c -o main

output:

tcc: error: undefined symbol '__rel_iplt_end'
tcc: error: undefined symbol '__rel_iplt_start'
tcc: error: undefined symbol '__gcc_personality_v0'
tcc: error: undefined symbol '_Unwind_Resume'
tcc: error: undefined symbol '_Unwind_GetIP'
tcc: error: undefined symbol '_Unwind_GetGR'
tcc: error: undefined symbol '_Unwind_GetCFA'
tcc: error: undefined symbol '_Unwind_Backtrace'



What is the issue ? i have googled and find that libgcc_eh.a is missing, but when i like against it using :

tcc /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/libgcc_eh.a -static main.c -o main

I get the same error.

How to resolve the issue ? If this require to build glibc using tcc than i didn't manage because the errors from the configure script i already mentioned in a previous message.

Thank you very much.

Best regards

reply via email to

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