Files
uniLoader/lib/compiler-rt.c
Ivaylo Ivanov a8428f37d6 lib: provide aeabi stubs to satisfy compiler on armv7
The framebuffer scaling code was not tested on armv7 due to no
current platforms making use of simplefb. Turns out the compiler
wants a set of aeabi helpers for divisions, not present due to
the bare metal nature of the bootloader. Satisfy this with empty
stubs.
2025-12-28 17:33:25 +01:00

34 lines
734 B
C

// SPDX-License-Identifier: GPL-2.0-only
/*
* Runtime compiler stubs
* Copyright (c) 2025, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
*/
/* make sure these are not inlined and are visible to the linker */
__attribute__((used, noinline))
int raise(int sig) {
(void)sig;
while(1);
return 0;
}
__attribute__((used, noinline))
void __aeabi_unwind_cpp_pr0(void) {
/* C++ exception unwinding stub - not needed */
}
__attribute__((used, noinline))
void __aeabi_unwind_cpp_pr1(void) {
/* C++ exception unwinding stub - not needed */
}
__attribute__((used, noinline))
int __aeabi_idiv0(int return_value) {
return 0;
}
__attribute__((used, noinline))
long long __aeabi_ldiv0(long long return_value) {
return 0;
}