ARM: provide __aeabi_memclr* and __aeabi_memcpy* symbols
Fixes compilation with recent clang.
This commit is contained in:
parent
389d509df0
commit
f250c337f1
2 changed files with 22 additions and 0 deletions
|
@ -381,9 +381,24 @@ __aeabi_idiv (grub_int32_t a, grub_int32_t b)
|
|||
__attribute__ ((alias ("__divsi3")));
|
||||
void *__aeabi_memcpy (void *dest, const void *src, grub_size_t n)
|
||||
__attribute__ ((alias ("grub_memcpy")));
|
||||
void *__aeabi_memcpy4 (void *dest, const void *src, grub_size_t n)
|
||||
__attribute__ ((alias ("grub_memcpy")));
|
||||
void *__aeabi_memcpy8 (void *dest, const void *src, grub_size_t n)
|
||||
__attribute__ ((alias ("grub_memcpy")));
|
||||
void *__aeabi_memset (void *s, int c, grub_size_t n)
|
||||
__attribute__ ((alias ("memset")));
|
||||
|
||||
void
|
||||
__aeabi_memclr (void *s, grub_size_t n)
|
||||
{
|
||||
grub_memset (s, 0, n);
|
||||
}
|
||||
|
||||
void __aeabi_memclr4 (void *s, grub_size_t n)
|
||||
__attribute__ ((alias ("__aeabi_memclr")));
|
||||
void __aeabi_memclr8 (void *s, grub_size_t n)
|
||||
__attribute__ ((alias ("__aeabi_memclr")));
|
||||
|
||||
int
|
||||
__aeabi_ulcmp (grub_uint64_t a, grub_uint64_t b)
|
||||
{
|
||||
|
|
|
@ -88,7 +88,14 @@ EXPORT_FUNC (__aeabi_lmul) (grub_uint64_t a, grub_uint64_t b);
|
|||
void *
|
||||
EXPORT_FUNC (__aeabi_memcpy) (void *dest, const void *src, grub_size_t n);
|
||||
void *
|
||||
EXPORT_FUNC (__aeabi_memcpy4) (void *dest, const void *src, grub_size_t n);
|
||||
void *
|
||||
EXPORT_FUNC (__aeabi_memcpy8) (void *dest, const void *src, grub_size_t n);
|
||||
void *
|
||||
EXPORT_FUNC(__aeabi_memset) (void *s, int c, grub_size_t n);
|
||||
void EXPORT_FUNC(__aeabi_memclr) (void *s, grub_size_t n);
|
||||
void EXPORT_FUNC(__aeabi_memclr4) (void *s, grub_size_t n);
|
||||
void EXPORT_FUNC(__aeabi_memclr8) (void *s, grub_size_t n);
|
||||
|
||||
grub_uint64_t
|
||||
EXPORT_FUNC (__aeabi_lasr) (grub_uint64_t u, int b);
|
||||
|
|
Loading…
Reference in a new issue