Gentoo Archives: gentoo-user

From: Arnau Bria <arnau@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs)
Date: Fri, 14 Jul 2006 08:10:00
Message-Id: 20060714095741.7b36081c@lx-arnau.pic.es
In Reply to: Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) by Richard Fish
1 On Thu, 13 Jul 2006 11:12:43 -0700
2 Richard Fish wrote:
3
4 > On 7/13/06, Arnau Bria <arnau@×××××××××.net> wrote:
5 > > Then, after akregator compilation, I was looking for some warning
6 > > and I found a message that toke me to
7 >
8 > I suggest to post the actual warning message[s], and your emerge
9 > --info output.
10
11 Here we go! (sorry for not wrapping the text, but I tough I could be
12 more readable in this format)
13
14 # emerge --info
15 Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
16 =================================================================
17 System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz
18 Gentoo Base System version 1.6.15
19 app-admin/eselect-compiler: [Not Present]
20 dev-lang/python: 2.4.3-r1
21 dev-python/pycrypto: 2.0.1-r5
22 dev-util/ccache: [Not Present]
23 dev-util/confcache: [Not Present]
24 sys-apps/sandbox: 1.2.17
25 sys-devel/autoconf: 2.13, 2.59-r7
26 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
27 sys-devel/binutils: 2.16.1-r3
28 sys-devel/gcc-config: 1.3.13-r2
29 sys-devel/libtool: 1.5.22
30 virtual/os-headers: 2.6.11-r2
31 ACCEPT_KEYWORDS="x86"
32 AUTOCLEAN="yes"
33 CBUILD="i686-pc-linux-gnu"
34 CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mtune=i686"
35 CHOST="i686-pc-linux-gnu"
36 CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
37 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
38 CXXFLAGS="-O2 -mcpu=i686 -pipe"
39 DISTDIR="/usr/portage/distfiles"
40 FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
41 GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/"
42 PKGDIR="/usr/portage/packages"
43 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'"
44 PORTAGE_TMPDIR="/var/tmp"
45 PORTDIR="/usr/portage"
46 PORTDIR_OVERLAY="/usr/local/portage"
47 SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
48 USE="x86 X alsa amarok apache2 apm avi berkdb bitmap-fonts ccache cdr cgi clamav clamd crypt cups dlloader dri encode firefox gdbm gpm gstreamer gtk2 imap imlib jpeg kde kerberosi libwww mad mikmod motif mp3 mpeg mpeg2 mplayer ncurses nls nptl ogg opengl pcre pdflib perl png python qt qt3 qt4 readline sasl sdl session spamassassin spell spl ssl tcpd truetype truetype-fonts type1-fonts udev userlocales vorbis win32codecs wmv xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_i810 video_cards_i915 video_cards_vesa"
49 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
50
51
52 And here's akregator en lines from compilation... as it doesn't work, I
53 looked for any note in the output and found this:
54
55 >>> Completed installing akregator-3.5.2
56 into /var/tmp/portage/akregator-3.5.2/image/
57
58 man:
59 strip: i686-pc-linux-gnu-strip --strip-unneeded
60 usr/kde/3.5/lib/libakregatorprivate.so
61 usr/kde/3.5/lib/kde3/libakregatorpart.so
62 usr/kde/3.5/lib/kde3/libakregator_mk4storage_plugin.so
63 usr/kde/3.5/lib/kde3/libkontact_akregator.so
64 usr/kde/3.5/bin/akregator
65
66 QA Notice: the following files contain runtime text relocations
67 Text relocations force the dynamic linker to perform extra
68 work at startup, waste system resources, and may pose a security
69 risk. On some architectures, the code may not even function
70 properly, if at all.
71 For more information, see http://hardened.gentoo.org/pic-fix-guide.xml
72 Please include this file in your report:
73 /var/tmp/portage/akregator-3.5.2/temp/scanelf-textrel.log
74 "TEXTREL usr/kde/3.5/lib/libakregatorprivate.so"
75 "TEXTREL usr/kde/3.5/lib/kde3/libakregatorpart.so"
76 "TEXTREL usr/kde/3.5/lib/kde3/libakregator_mk4storage_plugin.so"
77 "TEXTREL usr/kde/3.5/lib/kde3/libkontact_akregator.so"
78
79
80 >>> Merging kde-base/akregator-3.5.2 to /
81 --- /usr/
82 --- /usr/kde/
83 --- /usr/kde/3.5/
84 --- /usr/kde/3.5/share/
85 [...]
86 >>> Original instance of package unmerged safely.
87 >>> Regenerating /etc/ld.so.cache...
88 >>> kde-base/akregator-3.5.2 merged.
89
90 >>> No packages selected for removal by clean.
91
92 >>> Auto-cleaning packages...
93
94 >>> No outdated packages were found on your system.
95
96
97 * GNU info directory index is up-to-date.
98
99
100 > -Richard
101 Thanks!
102
103 --
104 Arnau Bria
105 http://blog.emergetux.net
106 La vida es una aplastante derrota tras otra hasta que
107 acabas deseando que se muera Flanders.
108 ~Homer J. Simpson~
109 --
110 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) Richard Fish <bigfish@××××××××××.org>