[BOLT] Add runtime functions required by freestanding environment
authorMaksim Panchenko <maks@fb.com>
Wed, 6 Jul 2022 02:55:26 +0000 (19:55 -0700)
committerMaksim Panchenko <maks@fb.com>
Wed, 6 Jul 2022 18:22:22 +0000 (11:22 -0700)
commitea2182fedd9da23801d5535ea8180d340a820944
treeb24cd92bb00d11a60de96630c96a52c61abe0e32
parent8a668671a08f843c426c9a4f73bb0fb012b2d49b
[BOLT] Add runtime functions required by freestanding environment

Compiler can generate calls to some functions implicitly, even under
constraints of freestanding environment. Make sure these functions are
available in our runtime objects.

Fixes test failures on some systems after https://reviews.llvm.org/D128960.

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D129168
bolt/runtime/common.h
bolt/runtime/hugify.cpp
bolt/runtime/instr.cpp