Page 1 of 1

PAX Binutils 2.16 Patch

PostPosted: Sun Mar 26, 2006 8:57 am
by Yagisan
G'day, I attempted to patch this http://pax.grsecurity.net/binutils-2.16 ... 2235.patch patch against the Ubuntu Dapper binutils-2.16.1cvs20060117-1ubuntu2 however it fails to successfully patch the testsuites.
Code: Select all
(amd64)jamie@doomguy:/tmp/dpep-work.b59py9/binutils-2.16.1cvs20060117$ patch -p1 --dry-run  < binutils-2.16-pt-pax-flags-200506102235.patch |grep reject
1 out of 2 hunks FAILED -- saving rejects to file ld/testsuite/ld-alpha/tlspic.rd.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-ia64/tlsbin.dd.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-ia64/tlspic.dd.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsexe.g.rej
4 out of 4 hunks FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsexe.r.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsexe32.d.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsexe32.g.rej
6 out of 6 hunks FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsexe32.r.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsexetoc.g.rej
4 out of 4 hunks FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsexetoc.r.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsso.g.rej
5 out of 5 hunks FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsso.r.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsso32.d.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsso32.g.rej
5 out of 5 hunks FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlsso32.r.rej
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlstocso.g.rej
5 out of 5 hunks FAILED -- saving rejects to file ld/testsuite/ld-powerpc/tlstocso.r.rej
4 out of 4 hunks FAILED -- saving rejects to file ld/testsuite/ld-s390/tlsbin.rd.rej
3 out of 4 hunks FAILED -- saving rejects to file ld/testsuite/ld-s390/tlsbin_64.rd.rej
1 out of 3 hunks FAILED -- saving rejects to file ld/testsuite/ld-s390/tlspic.rd.rej
2 out of 3 hunks FAILED -- saving rejects to file ld/testsuite/ld-s390/tlspic_64.rd.rej
7 out of 7 hunks FAILED -- saving rejects to file ld/testsuite/ld-x86-64/tlspic.dd.rej

Is there a more recent patch available ? I understand that I can test grsec/pax without this patch, but it would be nice to have.

Re: PAX Binutils 2.16 Patch

PostPosted: Sun Mar 26, 2006 11:52 am
by PaX Team
Yagisan wrote:Is there a more recent patch available ? I understand that I can test grsec/pax without this patch, but it would be nice to have.
i update it for major releases only however the nice folks at gentoo tend to forward port it to intermediate versions as well. check out their binutils patches tarball, it may work with your version: http://packages.gentoo.org/packages/?category=sys-devel;name=binutils for the supported versions and http://dev.gentoo.org/~vapier/dist/ for the patches.

PostPosted: Mon Mar 27, 2006 6:38 am
by Yagisan
Thank you, I found a patch in their cvs that applies with --fuzz=3.

-- Edit --
Spoke too soon. That needed a manual merge to compile. Now to test it.