Bug#175074: Bug#175077: libdv2: libraries not compiled with -fPIC
On Jan 10, Jakub Jelinek <jakub@redhat.com> wrote:
>Normally libGL in XFree86 is compiled without -fPIC (I have a patch to
>change that, but need to update it and test whether libGL is at least as
>fast as before).
>If you made sure all libGL.so .c files are compiled with -fpic/-fPIC and
>the library is still DT_TEXTREL, you might as well look at assembly files.
>Easiest is just watching what relocations are against the read-only segment
>on the final library.
I tried building libdv2 without the x86 hand-written assembly and
DT_TEXTREL disappeared, so I think the problem is there. Do you have any
suggestion I could pass upstream to have it fixed?
I could not rebuild X, but I have seen that libGL has x86 assembly code
too and the maintainer verified that it's not DT_TEXTREL on a different
architecture, so I assume it has the same problem. I looked at the red
hat XFree86 SRPM but could not find any patch related to prelinking or
libGL, how did you fix this?
--
ciao,
Marco
Reply to: