-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid compilation failure in ARM64 (#3)
* Adding support for arm * Dummy method for arm and arm64 * Improve error handling * Apply review feedback
- Loading branch information
1 parent
0044123
commit 1a86426
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// +build !386 | ||
// +build !amd64 | ||
|
||
package mpatch | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
"runtime" | ||
) | ||
|
||
// Gets the jump function rewrite bytes | ||
func getJumpFuncBytes(to uintptr) ([]byte, error) { | ||
return nil, errors.New(fmt.Sprintf("Unsupported architecture: %s", runtime.GOARCH)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters