summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2000-10-17 16:47:23 +0000
committerabs <abs@pkgsrc.org>2000-10-17 16:47:23 +0000
commitc1549aab5c48f5f9f50cf7b483030680a27edb08 (patch)
treed895261347702e2bc4ae6026550190c2d497d136
parentc7c89fb09521e1c85de94c4766824f208e5dedb9 (diff)
downloadpkgsrc-c1549aab5c48f5f9f50cf7b483030680a27edb08.tar.gz
fix4SA110rev2 modifies arm32 binaries in an attempt to work around
StrongARM rev2 problems It attempts to identify the instructions that will cause problems and moves them to a safe location. The "safe" location is final page of the text (code) segment of the executable, which normally has some spare bytes before the start of the data segment. Having moved the instruction, it then puts a branch to the new location where the old instruction used to be so that things will continue to work.
-rw-r--r--sysutils/fix4SA110rev2/Makefile23
-rw-r--r--sysutils/fix4SA110rev2/files/md54
-rw-r--r--sysutils/fix4SA110rev2/pkg/COMMENT1
-rw-r--r--sysutils/fix4SA110rev2/pkg/DESCR10
-rw-r--r--sysutils/fix4SA110rev2/pkg/PLIST3
5 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/fix4SA110rev2/Makefile b/sysutils/fix4SA110rev2/Makefile
new file mode 100644
index 00000000000..66e4edb39db
--- /dev/null
+++ b/sysutils/fix4SA110rev2/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/17 16:47:23 abs Exp $
+#
+
+DISTNAME= fix4SA110rev2-1.0
+NO_WRKSUBDIR= yes
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/arch/arm32/misc/
+DISTFILES= fix4SA110rev2.c fix4SA110rev2.README
+
+MAINTAINER= abs@netbsd.org
+HOMEPAGE= ftp://ftp.netbsd.org/pub/NetBSD/arch/arm32/misc/fix4SA110rev2.README
+
+ONLY_FOR_PLATFORM= NetBSD-*-arm32
+EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}
+
+do-build:
+ ${CC} ${CFLAGS} -o ${WRKSRC}/fix4SA110rev2 ${WRKSRC}/fix4SA110rev2.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/fix4SA110rev2 ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/fix4SA110rev2.README ${PREFIX}/share/doc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/fix4SA110rev2/files/md5 b/sysutils/fix4SA110rev2/files/md5
new file mode 100644
index 00000000000..7696ef991e0
--- /dev/null
+++ b/sysutils/fix4SA110rev2/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2000/10/17 16:47:23 abs Exp $
+
+MD5 (fix4SA110rev2.c) = 9df0fdaac8e39126e865a2ebd9de0990
+MD5 (fix4SA110rev2.README) = 0bdb136e9d27f0334042725bdb5920d0
diff --git a/sysutils/fix4SA110rev2/pkg/COMMENT b/sysutils/fix4SA110rev2/pkg/COMMENT
new file mode 100644
index 00000000000..3a3c70b28dd
--- /dev/null
+++ b/sysutils/fix4SA110rev2/pkg/COMMENT
@@ -0,0 +1 @@
+Modify arm32 binaries to work around SA rev2 problems
diff --git a/sysutils/fix4SA110rev2/pkg/DESCR b/sysutils/fix4SA110rev2/pkg/DESCR
new file mode 100644
index 00000000000..7f575c27ad1
--- /dev/null
+++ b/sysutils/fix4SA110rev2/pkg/DESCR
@@ -0,0 +1,10 @@
+fix4SA110rev2 modifies arm32 binaries in an attempt to work around
+StrongARM rev2 problems
+
+It attempts to identify the instructions that will cause problems
+and moves them to a safe location. The "safe" location is final
+page of the text (code) segment of the executable, which normally
+has some spare bytes before the start of the data segment. Having
+moved the instruction, it then puts a branch to the new location
+where the old instruction used to be so that things will continue
+to work.
diff --git a/sysutils/fix4SA110rev2/pkg/PLIST b/sysutils/fix4SA110rev2/pkg/PLIST
new file mode 100644
index 00000000000..085aa1b4577
--- /dev/null
+++ b/sysutils/fix4SA110rev2/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/17 16:47:23 abs Exp $
+bin/fix4SA110rev2
+share/doc/fix4SA110rev2.README