freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Position Independent Port of FreeType2


From: Werner LEMBERG
Subject: Re: [ft-devel] Position Independent Port of FreeType2
Date: Tue, 20 Jan 2009 18:22:01 +0100 (CET)

> What I am talking about is that global/static data must be const,
> and ALSO cannot contain ANY pointers, because those require
> relocations.

Hmm.

> [...] This is a global struct, which although const, contains many
> pointer, that require relocations. This is impossible on BREW (and
> other systems were the code must be position independent).

This is definitely a wrong statement.  As has been noted in another
email, gcc CAN generate position independent code just fine using the
current source code of FreeType, and up to now we have had never
complaints w.r.t. PIC, and FreeType is used in a lot of embedded
systems, as far as we know.  Apparently, the BREW compiler isn't
sophisticated enough to handle such issues automatically.  But maybe
there are some additional issues I'm missing.

The general question is whether it makes more sense to port gcc to
BREW.  You would immediately have access to a lot of code which then
compiles just fine out of the box.


    Werner




reply via email to

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