Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81929 - after each merge of xorg-x11 on selinux/2004.1/ppc and starting the xserver it freezes on console with Elf_RelocateEntry() Unsupported reloaction type 18
Summary: after each merge of xorg-x11 on selinux/2004.1/ppc and starting the xserver i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: PPC Linux
: High blocker (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-13 16:15 UTC by Nicolas Vilz
Modified: 2005-06-02 15:07 UTC (History)
1 user (show)

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


Attachments
my xorg.conf working on builds of xorg-x11 which i haven't merged myself (xorg.conf.pr0llb00k,14.44 KB, text/plain)
2005-02-13 16:18 UTC, Nicolas Vilz
Details
Possible fix (xorg.ebuild.patch,656 bytes, patch)
2005-05-31 09:31 UTC, Michal Suchanek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Vilz 2005-02-13 16:15:49 UTC
i can merge the xorg-x11 ebuild, but I cant start it up. 
if i try to start with startx for example, i get lots of
 
Elf_RelocateEntry() Unsupported reloaction type 18

messages.

Reproducible: Always
Steps to Reproduce:
1.emerge xorg-x11
2.startx
3.

Actual Results:  
these errormessages:
Elf_RelocateEntry() Unsupported reloaction type 18

Expected Results:  
i should have got a shiny xserver running

pr0llb00k ~ # emerge info
Portage 2.0.51-r15 (selinux/2004.1/ppc, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.10-gentoo-r6 ppc)
=================================================================
System uname: 2.6.10-gentoo-r6 ppc 7410, altivec supported
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 21:38:00)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.7.9-r1, 1.8.5-r3, 1.4_p6, 1.6.3, 1.5
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache cvs distlocks sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo-distfiles.local.nil.nul/gentoo-portage"
USE="X aalib aim alsa altivec apache2 arts bash-completion berkdb bidi
bitmap-fonts bluetooth bonobo bzip2 cddb cdr cdrom cjk clamav crypt cups curl
dba directfb divx4linux dmx dvd dvdr dvdread eep escreen esd etwin fam fbcon fla
flac font-server foomaticdb ftp gd gdbm gif gimpprint gpm gtk gtk2 hardened
hardenedphp iconv icq imagemagick imap imlib ipv6 ipv6arpa irda irmc jabber jack
jack-tmpfs java jpeg junit ldap libwww maildir motif mozilla mpeg mpeg4 msn
mysql ncurses nethack nls odbc oggvorbis opengl oscar pam pcmcia pda perl php
png pnp postgres ppc ppds psyco pthreads python qt quicktime radeon readline
samba sdl selinux session slang soap spell sqlite ssl svg tcltk tcpd tetex tiff
truetype truetype-fonts type1 type1-fonts vhosts vim-with-x wmf xine xinerama
xml xml2 xmms xprint xsl xv xvid yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

---
my Xorg.0.log shows following lines:

(...)
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
Elf_RelocateEntry() Unsupported relocation type 18
(II) Module bitmap: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Font Renderer
        ABI class: X.Org Font Renderer, version 0.4
---
pr0llb00k ~ # emerge -pv xorg-x11

These are the packages that I would merge, in order:

Calculating dependencies   ...done!
[ebuild   R   ] x11-base/xorg-x11-6.8.2  (-3dfx) (-3dnow) +bitmap-fonts +cjk
-debug -dlloader +dmx -doc +font-server +hardened -insecure-drivers +ipv6
-minimal (-mmx) +nls +opengl +pam -sdk (-sse) -static +truetype-fonts
+type1-fonts (-uclibc) +xprint +xv 0 kB 

Total size of downloads: 0 kB
---
my xorg.conf follows...
Comment 1 Nicolas Vilz 2005-02-13 16:18:10 UTC
Created attachment 51167 [details]
my xorg.conf working on builds of xorg-x11 which i haven't merged myself
Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2005-02-13 23:35:47 UTC
Add 'dlloader' to your use flags.  The elf loader is not supported by hardened, it's too primitive.

The other alternative is to build X static, but I'd guess you probably don't want that.
Comment 3 Nicolas Vilz 2005-02-14 09:40:06 UTC
aye... i tell you tommorrow (or the day after) if it works...

*compiling*
Comment 4 Nicolas Vilz 2005-02-15 07:15:13 UTC
thx alot, that dlloader useflag did it :)
Comment 5 Nicolas Vilz 2005-02-15 07:48:25 UTC
changing this "bug"-message to resolved/fixed...
Comment 6 Michal Suchanek 2005-05-31 08:58:21 UTC
Shouldn't hardened imply dlloader in USE flags then?
Comment 7 Michal Suchanek 2005-05-31 09:29:34 UTC
And how is this fixed?
Comment 8 Michal Suchanek 2005-05-31 09:31:02 UTC
Created attachment 60282 [details, diff]
Possible fix
Comment 9 Kevin F. Quinn (RETIRED) gentoo-dev 2005-06-02 15:07:50 UTC
The preference for dlloader with xorg-x11 is independent of arch (more
accurately the problems with elfloader occur on all hardened arches!). 
Currently 'dlloader' is in the hardened profile for ppc, ppc64, x86 and x86/2.6
- I don't know when it was added, but the point is that these hardened profile
users get it by default, so it's correct to consider it fixed.

The ppc & ppc64 profiles are currently 'in testing' - so using them, finding and
reporting issues with them would be appreciated.