Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186710 - dev-libs/gmp-4.2.1-r1: Text relocations when using -freorder-blocks-and-partition
Summary: dev-libs/gmp-4.2.1-r1: Text relocations when using -freorder-blocks-and-parti...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-26 17:14 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2013-12-25 08:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
scanelf-textrel.log (scanelf-textrel.log,52.85 KB, text/plain)
2007-07-26 17:15 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details
/stage3/var/log/portage/dev-libs:gmp-4.2.1-r1:20070809-180311.log (dev-libs:gmp-4.2.1-r1:20070809-180311.log,256.96 KB, text/plain)
2007-08-09 19:21 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details
/stage3/var/tmp/portage/dev-libs/gmp-4.2.1-r1/work/gmp-4.2.1/config.log (config.log,158.96 KB, text/plain)
2007-08-09 19:24 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details
/stage3/var/tmp/portage/dev-libs/gmp-4.2.1-r1/temp/scanelf-textrel.log (scanelf-textrel.log,53.09 KB, text/plain)
2007-08-09 19:25 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-26 17:14:01 UTC
* QA Notice: The following files contain runtime text relocations
 *  Text relocations force the dynamic linker to perform extra
 *  work at startup, waste system resources, and may pose a security
 *  risk.  On some architectures, the code may not even function
 *  properly, if at all.
 *  For more information, see http://hardened.gentoo.org/pic-fix-guide.xml
 *  Please include this file in your report:
 *  /var/tmp/portage/dev-libs/gmp-4.2.1-r1/temp/scanelf-textrel.log
 * TEXTREL usr/lib/libgmpxx.so.3.1.1
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-26 17:15:11 UTC
Created attachment 126090 [details]
scanelf-textrel.log
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-26 17:24:25 UTC
HOMEPAGE should be "http://gmplib.org".
Comment 3 SpanKY gentoo-dev 2007-07-26 19:35:59 UTC
you cant just file curt bug reports like this because they're usually useless

for starters, you need to start including `emerge --info` in every report
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-26 21:03:47 UTC
Portage 2.2_pre7397 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6-r0, 2.6.21-suspend2-r6-AFTA i686)
=================================================================
System uname: 2.6.21-suspend2-r6-AFTA i686 AMD Sempron(tm) Processor 2800+
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 26 Jul 2007 19:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.17
sys-devel/gcc-config: 1.4.0
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -freorder-blocks-and-partition"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -freorder-blocks-and-partition"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.ynet.sk/pub http://mirror.gentoo.no http://mirrors.evolva.ro/gentoo http://ftp.du.se/pub/os/gentoo http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.lug.ro/gentoo http://src.gentoo.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu,--sort-common,-z,relro"
LINGUAS="pl en la lt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/manifest1_obsolete --prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa arts audiofile bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cracklib crypt cscope ctype cups curl curlwrappers dbus directfb dri dts dvb dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg firefox flac foomaticdb ftp gcj gd gdbm ggi gif glut gmp gnutls gpm graphviz gstreamer gtk guile hal hardened iconv idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lash lcms ldap libcaca lm_sensors mad matroska matrox memlimit mhash mikmod mime mmap mmx mng motif mp3 mpeg mpi mplayer musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr opengl pam pcntl pcre pda pdf perl png portaudio posix ppds profile python qt3 qt4 quicktime rdesktop readline recode ruby sasl scanner sdl session sharedmem shorten simplexml slang slp sndfile soap sockets speex spell sqlite sse sse2 ssl svg svga symlink szip tcl tcpd theora threads tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xcomposite xine xml xmlrpc xpm xprint xsl xv xvid zlib" ALSA_CARDS="hda-intel virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="pl en la lt" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 5 SpanKY gentoo-dev 2007-07-26 23:09:52 UTC
USE=hardened is not supported on non-hardened profiles
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-27 01:36:55 UTC
(In reply to comment #5)
> USE=hardened is not supported on non-hardened profiles

I rebuilt world with USE="-hardened".

Text relocations are created only with -freorder-blocks-and-partition, but it doesn't mean that -freorder-blocks-and-partition is bad, but that -freorder-blocks-and-partition reveals a bug in GMP's source code.
Comment 7 SpanKY gentoo-dev 2007-07-27 02:24:28 UTC
your toolchain was built with USE=hardened.  any results from your system is suspect and not reliable.  i built gmp on my x86 system without a problem with the CFLAGS you cited.

feel free to investigate.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-27 02:58:49 UTC
(In reply to comment #7)
> your toolchain was built with USE=hardened.

No. See ${PORTDIR}/profiles/default-linux/package.use.mask.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-08 22:36:48 UTC
Steps to reproduce:
cd /
wget ftp://gentoo.po.opole.pl/releases/x86/2007.0/stages/stage3-i686-2007.0.tar.bz2
mkdir stage3
cd /stage3
tar -xjpvf /stage3-i686-2007.0.tar.bz2
mkdir usr/portage
mount -o bind /usr/portage usr/portage
chroot . /bin/bash
echo 'CFLAGS="${CFLAGS} -freorder-blocks-and-partition"' >> /etc/make.conf
echo 'CXXFLAGS="${CXXFLAGS} -freorder-blocks-and-partition"' >> /etc/make.conf
emerge gmp
Comment 10 SpanKY gentoo-dev 2007-08-08 22:48:13 UTC
so post the actual full build log and the config.log files as attachments
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-09 19:21:34 UTC
Created attachment 127387 [details]
/stage3/var/log/portage/dev-libs:gmp-4.2.1-r1:20070809-180311.log
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-09 19:24:20 UTC
Created attachment 127388 [details]
/stage3/var/tmp/portage/dev-libs/gmp-4.2.1-r1/work/gmp-4.2.1/config.log
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-09 19:25:25 UTC
Created attachment 127391 [details]
/stage3/var/tmp/portage/dev-libs/gmp-4.2.1-r1/temp/scanelf-textrel.log
Comment 14 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-09 19:27:52 UTC
# ebuild /usr/portage/dev-libs/gmp/gmp-4.2.1-r1.ebuild unpack &>/dev/null
# grep -Er "try|catch|throw" /var/tmp/portage/dev-libs/gmp-4.2.1-r1/work/gmp-4.2.1/cxx
# 
Comment 15 Carsten Lohrke (RETIRED) gentoo-dev 2008-08-28 21:40:10 UTC
*** Bug 236054 has been marked as a duplicate of this bug. ***
Comment 16 Mark Loeser (RETIRED) gentoo-dev 2009-05-03 00:42:27 UTC
Works fine for me.  (probably because we have new versions of everything now)