[realtek-ambz] Fix float abi linking errors

This commit is contained in:
Kuba Szczodrzyński
2022-06-04 20:40:09 +02:00
parent 3217525873
commit 6f9be2b139
4 changed files with 17 additions and 1 deletions

View File

@@ -238,7 +238,8 @@ env.Append(
"_wps",
"_p2p",
"_dct",
"_rtlstd",
# use lib_rtlstd.a without some __aeabi functions
"_rtlstd_patch",
"m",
"c",
"nosys",

View File

@@ -49,6 +49,7 @@ def env_add_defaults(env, family_name: str, sdk_name: str):
],
LIBPATH=[
"$LD_DIR",
"$FIXUPS_DIR",
],
CPPDEFINES=[
("LIBRETUYA", "1"),

Binary file not shown.

View File

@@ -0,0 +1,14 @@
# lib_rtlstd_patch.a
```
arm-none-eabi-gcc-ar xo lib_rtlstd.a
arm-none-eabi-objcopy -N __aeabi_fsub rtl_eabi_cast_ram.o
arm-none-eabi-objcopy -N __aeabi_fadd rtl_eabi_cast_ram.o
arm-none-eabi-objcopy -N __aeabi_ui2f rtl_eabi_cast_ram.o
arm-none-eabi-objcopy -N __aeabi_i2f rtl_eabi_cast_ram.o
arm-none-eabi-objcopy --strip-debug --strip-unneeded ram_libc.o
arm-none-eabi-objcopy --strip-debug --strip-unneeded ram_libgloss_retarget.o
arm-none-eabi-objcopy --strip-debug --strip-unneeded rtl_eabi_cast_ram.o
arm-none-eabi-objcopy --strip-debug --strip-unneeded rtl_math_ram.o
arm-none-eabi-gcc-ar qs lib_rtlstd_patch.a *.o
```