Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144801 - app-emulation/emul-linux-x86-xlibs-7.0-r[2-8] fails due to textrels and execstacks
Summary: app-emulation/emul-linux-x86-xlibs-7.0-r[2-8] fails due to textrels and execs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: emul-tracker
  Show dependency tree
 
Reported: 2006-08-22 18:13 UTC by Josh Nichols (RETIRED)
Modified: 2007-02-11 23:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Nichols (RETIRED) gentoo-dev 2006-08-22 18:13:00 UTC
With FEATURES="stricter", you get the following:

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/emul-linux-x86-xlibs-7.0-r2/temp/scanelf-textrel.log
TEXTREL emul/linux/x86/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2


QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/emul-linux-x86-xlibs-7.0-r2/temp/scanelf-execstack.log
RWX --- --- emul/linux/x86/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2


!!! ERROR: app-emulation/emul-linux-x86-xlibs-7.0-r2 failed.
Call stack:
  misc-functions.sh, line 407:   Called install_qa_check
  misc-functions.sh, line 164:   Called die

!!! Aborting due to QA concerns:  textrels, execstacks
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-08-22 18:14:22 UTC
The workaround is to add the following the ebuild:
QA_TEXTRELS_amd64="emul/linux/x86/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2"
QA_EXECSTACK_amd64="emul/linux/x86/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2"
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2006-11-24 13:27:33 UTC
-r3 affected by the same issue:
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/app-emulation/emul-linux-x86-xlibs-7.0-r3/temp/scanelf-textrel.log
TEXTREL emul/linux/x86/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2


QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/app-emulation/emul-linux-x86-xlibs-7.0-r3/temp/scanelf-execstack.log
RWX --- --- emul/linux/x86/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
Comment 3 Olivier Crete (RETIRED) gentoo-dev 2006-11-24 15:26:26 UTC
does the mesa libGL on x86 also have the stacks/textrel issues?
Comment 4 Sandro Bonazzola (RETIRED) gentoo-dev 2007-01-09 20:13:16 UTC
>>> Completed installing emul-linux-x86-xlibs-7.0-r8 into /var/tmp/portage/app-emulation/emul-linux-x86-xlibs-7.0-r8/image/

man:

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/app-emulation/emul-linux-x86-xlibs-7.0-r8/temp/scanelf-textrel.log
TEXTREL usr/lib32/opengl/xorg-x11/lib/libGL.so.1.2


QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/app-emulation/emul-linux-x86-xlibs-7.0-r8/temp/scanelf-execstack.log
RWX --- --- usr/lib32/opengl/xorg-x11/lib/libGL.so.1.2
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2007-02-11 23:07:46 UTC
added the QA_* stuff