This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Add libgloss unlink support for moxie port
- From: Anthony Green <green at moxielogic dot com>
- To: newlib at sourceware dot org
- Date: Sat, 14 Dec 2019 05:31:35 -0500
- Subject: [PATCH] Add libgloss unlink support for moxie port
I just pushed the attached, which is required by the GCC testsuite.
Author: Anthony Green <green@moxielogic.com>
Date: Sat Dec 14 05:27:38 2019 -0500
Implement the unlink system call for the moxie simulator.
Corresponding support for this was just added to the gdb moxie simulator.
Unlink support is required by the GCC testsuite.
diff --git a/libgloss/moxie/sim-unlink.S b/libgloss/moxie/sim-unlink.S
index 87ae90fad..e6bd7dc2a 100644
--- a/libgloss/moxie/sim-unlink.S
+++ b/libgloss/moxie/sim-unlink.S
@@ -1,7 +1,7 @@
/*
* sim-unlink.S -- write interface for moxie simulator
*
- * Copyright (c) 2008 Anthony Green
+ * Copyright (c) 2008, 2019 Anthony Green
*
* The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided
@@ -22,7 +22,7 @@
.text
_unlink:
unlink:
- jmpa unlink
+ swi SYS_unlink
ret
.Lend:
.size _unlink,.Lend-_unlink