<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>157870</bug_id>
          
          <creation_ts>2006-12-11 16:18 0000</creation_ts>
          <short_desc>please stabilise paxctl-0.4 on remaining arches</short_desc>
          <delta_ts>2008-02-12 22:39:02 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>STABLEREQ</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kevquinn@gentoo.org</reporter>
          <assigned_to>mips@gentoo.org</assigned_to>
          <cc>brodigan@pdx.edu</cc>
    
    <cc>hardened@gentoo.org</cc>
    
    <cc>pageexec@freemail.hu</cc>

      

      
          <long_desc isprivate="0">
            <who>kevquinn@gentoo.org</who>
            <bug_when>2006-12-11 16:18:33 0000</bug_when>
            <thetext>Affected arches on CC.

paxctl-0.4 adds the &apos;-C&apos; option.  This new functionality adds a PT_PAX_FLAGS header where one did not exist before (useful for pre-built binaries).  It&apos;s the last piece of functionality need before the old EI flags (which strictly speaking contravene the ELF specification) can be phased out.

This method is more invasive than the others.  Typically, ELF files do not have any spare room in their Program Header table, and also typically the header is included in the PT_LOAD sections (i.e. the header is included as part of the process image).  The -C option deals with this by extending the process image downwards by one page, reducing the base load address by one page and adjusting offsets in the ELF file so that the code etc in the process image remains at its original location.

You can check this if you have a binary not built with the Gentoo toolchain (which always adds a PT_PAX_FLAGS header).  I&apos;ve tested it on amd64 with dev-java/sun-jdk, and the results seem to be fine there.  For other arches, I don&apos;t know of any packages that are not built by Gentoo and are provided only in binary form.

If you need me to provide detailed instructions on how to check that the new functionality works (i.e. beyond that it just emerges ok), just say and I&apos;ll write something up.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2006-12-11 16:32:47 0000</bug_when>
            <thetext>Stable on amd64.
sparc, hppa and mips remain.
hppa and mips have never had any version in stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kingtaco@gentoo.org</who>
            <bug_when>2006-12-11 22:32:57 0000</bug_when>
            <thetext>*** Bug 157869 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2006-12-12 04:40:53 0000</bug_when>
            <thetext>Seems good on sparc.  Sparc stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2006-12-12 06:58:52 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2007-03-11 20:11:32 0000</bug_when>
            <thetext>Kumba.. poke..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-12 22:39:02 0000</bug_when>
            <thetext>Closing wrt http://www.gentoo.org/news/20080210-mips-experimental-arch.xml</thetext>
          </long_desc>
      
    </bug>

</bugzilla>