ARM: Provide __aeabi_* only for ARM.

Follow-up to 25b3ac2ba85d9833227f75f841503a6697aab45e.

* lib/mes/div.c (__aeabi_idivmod, __aeabi_idiv, __aeabi_uidivmod,
__aeabi_uidiv): Add guard for ARM.
This commit is contained in:
Danny Milosavljevic 2019-03-11 20:23:34 +01:00 committed by Jan Nieuwenhuizen
parent b963db8342
commit cf0b648185
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ ldiv_t ldiv(long a, long b)
}
}
#if __GNUC__ && !SYSTEM_LIBC
#if __GNUC__ && !SYSTEM_LIBC && __arm__
// /gnu/store/7sfr3vhxq7l4mai8m0fr1cd8w9xcj9dh-binutils-2.31.1/bin/ld: hash.o: in function `hash_cstring':
// hash.c:(.text+0x56): undefined reference to `__aeabi_idivmod'
// /gnu/store/7sfr3vhxq7l4mai8m0fr1cd8w9xcj9dh-binutils-2.31.1/bin/ld: math.o: in function `divide':