2.27 introduced a new version of log2f and is now the oldest supported version of glibc after D13460
_divmoddi4 is a feature from GCC7 and we already enforce 8.3.
This is a partial backport of [[https://github.com/bitcoin/bitcoin/pull/22930 | core#22930]]