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

Bug#175074: Bug#175077: libdv2: libraries not compiled with -fPIC



On Thu, Jan 09, 2003 at 11:53:28PM +0100, Marco d'Itri wrote:
> On Jan 09, Daniel Kobras <kobras@tat.physik.uni-tuebingen.de> wrote:
> 
> You can check with:
> 
> objdump --all-headers /usr/lib/libdv.so.2
> 
> It shows a TEXTREL section, so it's not position independent[1].
> 
> I do not know why this happens even if the code is compiled with -fPIC
> (libGL shows the same problem, #175074), I'm Cc'ing the prelink author
> in the hope he can explain why prelink is complaining.

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.

	Jakub




Reply to: