tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] PIC code


From: Basile STARYNKEVITCH
Subject: [Tinycc-devel] PIC code
Date: Thu, 24 Oct 2002 11:21:40 +0200

A few questions on TCC

does the -shared flag produce a position independent code (=PIC) shared
library (*.so) or not?

apparently the answer is no (because there is no .plt or .rel.plt
generated elf sections), but I am not sure... 

Is it possible to compile to an object file .o with PIC code, so that
the generated object could be linked [with other PIC object files] (by
ld -shared) to produce a PIC *.so?

I do know that PIC usually consumes a register on x86 hence PIC code
could be slower.

I also know that non-PIC .so are doable, but requires lot of
relocation at dynamic loading time.

regards

-- 

Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net 
alias: basile<at>tunes<dot>org 
8, rue de la Faïencerie, 92340 Bourg La Reine, France




reply via email to

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