Commit 3b3fcc71 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

rts/Linker: Add noreturn to loadNativeObj on non-ELF platforms

parent 2f629beb
Pipeline #29610 canceled with stages
......@@ -2012,19 +2012,23 @@ addSection (Section *s, SectionKind kind, SectionAlloc alloc,
#define UNUSED(x) (void)(x)
#if defined(OBJFORMAT_ELF)
void * loadNativeObj (pathchar *path, char **errmsg)
{
#if defined(OBJFORMAT_ELF)
ACQUIRE_LOCK(&linker_mutex);
void *r = loadNativeObj_ELF(path, errmsg);
RELEASE_LOCK(&linker_mutex);
return r;
}
#else
void * GNU_ATTRIBUTE(__noreturn__)
loadNativeObj (pathchar *path, char **errmsg)
{
UNUSED(path);
UNUSED(errmsg);
barf("loadNativeObj: not implemented on this platform");
#endif
}
#endif
HsInt unloadNativeObj (void *handle)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment