ctz[sd]i2
Hello, I've seen that you had problems with ctzdi2. Attached patch may help
configure.ac +1 -1
@@ -829,7 +848,7 @@ CFLAGS="$TARGET_CFLAGS -Wl,--defsym,abort=main" fi # Check for libgcc symbols -AC_CHECK_FUNCS(__bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __ucmpdi2 _restgpr_14_x __ctzdi2 __ctzsi2) +AC_CHECK_FUNCS(__bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __ucmpdi2 _restgpr_14_x) if test "x$TARGET_APPLE_CC" = x1 ; then CFLAGS="$TARGET_CFLAGS -nostdlib"
grub-core/kern/misc.c +68 -0
74 lines not on this page · raw message
include/grub/misc.h +5 -0
@@ -463,6 +463,11 @@ EXPORT_FUNC (__udivsi3) (grub_uint32_t a, grub_uint32_t b);grub_uint32_t EXPORT_FUNC (__umodsi3 ) (grub_uint32_t a,grub_uint32_t b); +unsigned +EXPORT_FUNC (__ctzdi2 ) (grub_uint64_t x); +unsigned +EXPORT_FUNC (__ctzsi2 ) (grub_uint32_t x); +#endif #ifdef __arm__
Hi Vladimir,
Quoted 1 line · Vladimir 'φ-coder/phcoder' Serbinenko
Hello, I've seen that you had problems with ctzdi2. Attached patch may help
Thank you.
I've had problems similar to the ones I used to have with __clear_cache on 32-bit ARM, in that the linker pulled in a libgcc function valid only when running under Linux.
Since I was not actually using the function, I simply added an empty dummy one - but having a proper implementation is obviously preferable.
I have been stupidly busy and off sick for the past couple of weeks, so I have not completed the arm64 Linux loader. Should I simply clean up what I have (minus the loader) and submit?
Regards,
Leif