Skip to content

Commit c22b033

Browse files
committed
Add missing _exit symbol
This is required when `abort()` is linked in, otherwise we get an unsatisfied symbol. Signed-off-by: Christophe de Dinechin <[email protected]>
1 parent f8be34c commit c22b033

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dmcp/sys/pgm_syscalls.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3131
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
3333
34-
The software and related material is released as “NOMAS” (NOt MAnufacturer Supported).
34+
The software and related material is released as “NOMAS” (NOt MAnufacturer Supported).
3535
3636
1. Info is released to assist customers using, exploring and extending the product
3737
2. Do NOT contact the manufacturer with questions, seeking support, etc. regarding
@@ -171,3 +171,9 @@ void post_main() {
171171
sys_reset();
172172
}
173173

174+
void __attribute__((__noreturn__)) _exit(int status)
175+
{
176+
set_reset_magic(RUN_DMCP_MAGIC);
177+
sys_reset();
178+
while(1);
179+
}

0 commit comments

Comments
 (0)