resolveip: error while loading shared libraries: cannot make segment writable for relocation: Permission denied It doesn't work not even after I disable every protection with chpax -pEmrxsv /usr/bin/resolveip Trying to recompile mysql failed with: ./gen_lex_hash > lex_hash.h ./gen_lex_hash: error while loading shared libraries: cannot make segment writable for relocation: Permission denied It also doesn't work after disabling all protections. After disabling NOELFRELOCS, resolveip and gen_lex_hash work fine. This happens with mysql-4.0.20-r1. Portage 2.0.50-r11 (x86, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7-hardened-r8) ================================================================= System uname: 2.6.7-hardened-r8 i686 Celeron (Mendocino) Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4 -ftracer -fstack-protector-all" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4 -ftracer -fstack-protector-all" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoload ccache sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.lug.ro/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow aalib acl acpi adns apache2 berkdb bzlib caps crypt curl curlwrappers dio exif fam flac ftp gd gmp gnutls hardened imagemagick imap java junit ldap mad maildir mailwrapper memlimit mhash mmap mmx ncurses nls nptl offensive oggvorbis pam pcntl pcre pic pie png posix readline samba selinux session shared sharedmem slang soap sockets socks5 speex sqlite sse ssl svg sysvipc tcpd theora tiff unicode usb vhosts wmf x86 xml xmlrpc zlib"
A patch would need to be developed for this and needs to be pushed upstream.
Solar, this sounds more like NOTABUG to me. Most of us acknowledge that its still not the best idea to enable NOELFRELOCS for this reason, and I'm sure its documented multiple places. Reporter has unsupported kernel config and CFLAGS. If you've confirmed textrel in a *supported* MySQL build and are interested in fixing it.. ignore me.
Resolving bug as UPSTREAM. Patch needed from them to correct this behavior.
reopening bug
*** This bug has been marked as a duplicate of 42968 ***