Comment 2 for bug 503448

Dave Martin (dave-martin-arm) wrote :

It seems that currently the dynamic linker does not support resolving all the relocations which would be required for non-PIC Thumb-2 shared libraries.

Since non-PIC shared libraries are generally pretty inefficient (memory wastage and thrashing in and out of the dynamic linker and kernel as relocations are fixed up CoW, TLB and cache pollution etc., etc.) I think building such a library would usually be considered an error. This is true on all architectures.

Do we have any real-world examples of packages which build non-PIC shared libraries, or an argument for a case where they might be desirable?