From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a)
Description of problem:
The libaio DSO has a text relocation. The author had some problems
with getting syscall wrapper compiled with -fpic so he disabled it.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.eu-readelf -d /usr/lib/libaio.so.1 | fgrep TEXTREL
Actual Results: TEXTREL
Expected Results: No output
Created attachment 95808 [details]
Patch to fix the problem
Haven't done much testing but the code passed visual inspection.
Created attachment 98017 [details]
change libaio to use syscall(2)
This patch gets rid of the inline assembler and changes it to use syscall(2).
I've also added the -fpic as suggested by Uli. Uli, does this fix the problem
equally as well?
The patch looks OK. Using syscall() is a little bit less efficient
but the costs vanish compared to the syscall cost itself. I haven't
tested the patch but if it builds on all archs and the test using
readelf described in the report everything should be fine.
The second patch is in the current release (0.3.99).