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.
This commit is contained in:
parent
c7c89fb095
commit
c1549aab5c
5 changed files with 41 additions and 0 deletions
23
sysutils/fix4SA110rev2/Makefile
Normal file
23
sysutils/fix4SA110rev2/Makefile
Normal file
|
@ -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"
|
4
sysutils/fix4SA110rev2/files/md5
Normal file
4
sysutils/fix4SA110rev2/files/md5
Normal file
|
@ -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
|
1
sysutils/fix4SA110rev2/pkg/COMMENT
Normal file
1
sysutils/fix4SA110rev2/pkg/COMMENT
Normal file
|
@ -0,0 +1 @@
|
|||
Modify arm32 binaries to work around SA rev2 problems
|
10
sysutils/fix4SA110rev2/pkg/DESCR
Normal file
10
sysutils/fix4SA110rev2/pkg/DESCR
Normal file
|
@ -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.
|
3
sysutils/fix4SA110rev2/pkg/PLIST
Normal file
3
sysutils/fix4SA110rev2/pkg/PLIST
Normal file
|
@ -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
|
Loading…
Reference in a new issue