YDL4: mixing PIC and non-PIC code

Joseph E. Sacco, Ph.D. joseph_sacco at comcast.net
Sat Dec 11 09:58:10 MST 2004


Once upon a time shared libraries were built only from objects compiled
as position independent code. Mixing PIC and non-PIC code in a shared
library would lead to relocation errors when the library was loaded.
Later, compiler/linker/loader technology evolved to relax that
requirement.

I ran into a surprise the other day while building hylafax. The
restriction on building shared shared libraries only from PIC code seems
to be back.

Thoughts???


-Joseph


-- 
Joseph E. Sacco, Ph.D. <joseph_sacco at comcast.net>



More information about the yellowdog-general mailing list