From fd26d4b4b6bc84af57caeef81f913707b5d9c0d2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 24 Apr 2023 10:20:59 +0200 Subject: [PATCH] RTEMS: Add __m68k_read_tp() to crt0.c This is required to build libgomp. --- newlib/libc/sys/rtems/crt0.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index 3b131d9c4..67f9d7302 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -230,3 +230,7 @@ int __EH_FRAME_BEGIN__; */ const char* __stack ; #endif + +#if defined(__m68k__) +RTEMS_STUB(void, __m68k_read_tp(void), { }) +#endif