[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[DPATCH] glibc-2.2.94 - HPPA needs to define ABORT_INSTRUCTION



gotom,

Would you mind adding this .dpatch for hppa. It's one of 
the required pieces to build glibc 2.2.94.

You also need a modified pthread's patch, and I'm almost
done making the changes (adding separate pieces for the
newly divided powerpc32/64).

c.

p.s. Without the _exit.c changes in CVS the 2.2.94 tarball
     doesn't finish building ;)
#! /bin/sh -e

# DP: Description: PA-RISC Add definitions for ABORT_INSTRUCTION to glibc. 
# DP: Author: Carlos O'Donell <carlos@baldric.uwo.ca>
# DP: Upstream Status: Not submitted (yet)
# DP: Status Details: In the process of being submitted upstream.
# DP: Sun, 22 Sep 2002 19:20:00 -0400

if [ $# -ne 2 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -d "$2" -f --no-backup-if-mismatch -p0 < $0;;
    -unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p0 < $0;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1
esac
exit 0

# append the patch here and adjust the -p? flag in the patch calls.
--- glibc-2.2.94/sysdeps/hppa/abort-instr.h.orig	2002-09-21 02:34:32.000000000 -0400
+++ glibc-2.2.94/sysdeps/hppa/abort-instr.h	2002-09-21 02:11:06.000000000 -0400
@@ -0,0 +1,3 @@
+/* Any privileged instruction should crash a userspace program.
+ * We go with iitlbp because it has a history of being used to crash programs.  */
+#define ABORT_INSTRUCTION asm ("iitlbp	%r0,(%r0)")

Reply to: