Robert Connolly robert at
Tue Jan 24 19:14:07 PST 2006

Make sure to use the xorg-6.8.2-libGL_PIC-1.patch patch; and the et_dyn.tar.gz 
package is not needed with glibc's newer than 2.3.2.


On January 24, 2006 04:56 pm, Declan Moriarty wrote:
> Recently, Somebody Somewhere wrote these words
> > Can someone translate this errorspeak?
> >
> > Error while loading shared library /usr/X11R6/lib/
> > cannot make segment writable for relocation. Permission denied.
> >
> > I also get an error from the module on the symbol drm_cleanup_pci,
> > which is apparently exported in some .c file in the source,
> > although I have yet to find what that is when compiled.
> Gentoo and google finally obliged on my request above.
> It seems there are text relocations in the DRI stuff,
> CONFIG_PAX_NOELFRELOCS is just for that purpose. After reading the
> kernel help, I decided CONFIG_PAX_NOELFRELOCS has to stay. I never
> quite got this little bit:
> NOTE: if you are using dynamic ELF executables (as suggested
> when using ASLR) then you must have made sure that you linked
> your files using the PIC version of crt1 (the et_dyn.tar.gz
> package
> referenced there has already been updated to support this).
> ASLR? Can someone elucidate or dumb it down please?
> These files in the dri have relocations
> TEXTREL in exe /usr/X11R6/lib/ (AFAIK, that is
> the file from the common DRM tarball renamed by an install)
> TEXTREL in exe /usr/X11R6/lib/ (Made by X-6.9.0 with
> #define BuildXF86DRI  YES  added to host.def)
> TEXTREL library /usr/local/lib/ exec /usr/X11R6/lib/
> TEXTREL in exe /usr/X11R6/lib/
> TEXTREL library /usr/local/lib/ exec
> /usr/X11R6/lib/
> So I'll have to file another bug. Everyone can get patching or at
> least stop wasting time on this.
> Attached is a small gentoo script for checking for relocations. One
> of the readelf commands produces the output "Nothing to do!"
> Usage is script file(s) and it works with wildcards. I had to add
> the interpeter line, so I gather it's an idea more than a tool.
> --
> 	With best Regards,
> 	Declan Moriarty.

More information about the hlfs-dev mailing list