Red Hat Bugzilla – Bug 146596
libdv uses text relocations in DSO
Last modified: 2013-01-09 22:38:14 EST
Description of problem:
Ulrich Drepper said that libdv currently uses text relocations in DSO's, which
is bad because it will soon be disallowed by selinux policy. libdv must be
fixed and (harder part) verified.
foo, could you please post the link to the document that describes this problem
No progress on this, moving to FC6.
Has this been fixed?
In response to comment #1, I think this is it:
As for progres... So far as I can tell, this only impacts i386 builds. According
to eu-findtextrel, the problem is that the i386 assembly bits weren't compiled
with -fPIC, but forcing the build to use -fPIC still results in the same
message. Assembly isn't exactly my thing, so I'm not sure how to fix this, short
of passing the --disable-asm flag. Using --disable-asm does eliminate the text
relocations, but I'm not sure how seriously that would impact performance. I
suppose slower performance is better than it not working at all. Thoughts?
In the mean time, It would seem best to just pass --disable-asm on i386 builds.
Upstream has actually come back to life a bit of late, so maybe I can get
someone there to take a peek so we can turn asm on i386 back on later.
building asm files with -fPIC doesnt really have any meaning as the symbol
references are hand coded ... the asm itself is broken, not the build
(In reply to comment #5)
> building asm files with -fPIC doesnt really have any meaning as the symbol
> references are hand coded ... the asm itself is broken, not the build
That's sort of what I'd figured from my vague recollection of mmx assembly code.
/me makes mental note to file a bz for eu-findtextrel...
Mike, you mentioned on the libdv-dev mailing list you had some patches that were
not yet merged. Can you point me towards copies, by chance? The sf.net mailing
list archives are... less than fantastic...
any further status? Is this really blocking the release of fc6?
For the moment, we're going with an i386 build that has asm disabled. It'll be
slower, not sure how much, and when there's a text reloc fix available, we'll
incorporate it in a -updates build.
Bumping to libdv 1.0.0 and applying PIC patch from Mike:
New rawhide and FC6 updates-testing builds to beat on are coming shortly. Test
i386 build reports no more text relocations:
$ eu-findtextrel /usr/lib/libdv.so.4*
eu-findtextrel: no text relocations reported in '/usr/lib/libdv.so.4'
eu-findtextrel: no text relocations reported in '/usr/lib/libdv.so.4.0.3'
Even better, I'm still able to decode dv material w/o a problem (playdv
sample.dv), so thus far, lookin' good (plus, its been enabled in Gentoo for
almost two months now).