File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
arm-software/embedded/docs Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,23 @@ The same build directory can be used for both native and MinGW toolchains.
149
149
## Known limitations
150
150
* Depending on the state of the sources, build errors may occur when
151
151
the latest revisions of the llvm-project & picolibc repos are used.
152
+ * Undefined ` __aeabi_mem* ` symbols with ` -nostdlib `
153
+ When the ` COMPILER_RT_EXCLUDE_LIBC_PROVIDED_ARM_AEABI_BUILTINS ` flag is enabled,
154
+ the following ARM AEABI memory builtins are excluded from the ATFE ` compiler-rt ` build:
155
+ ```
156
+ __aeabi_memcmp
157
+ __aeabi_memset
158
+ __aeabi_memcpy
159
+ __aeabi_memmove
160
+ ```
161
+ This flag ` COMPILER_RT_EXCLUDE_LIBC_PROVIDED_ARM_AEABI_BUILTINS ` is enabled by default when
162
+ using picolibc and newlib as these functions are provided by the C library in both cases.
163
+ However, if the toolchain is used with ` -nostdlib ` and the C library is not linked in, users relying
164
+ solely on ` compiler-rt ` will have undefined symbol errors for these AEABI functions. To prevent the
165
+ generation of thse AEABI function calls by the compiler, pass the following option to the compiler:
166
+ ```
167
+ -meabi gnu
168
+ ```
152
169
153
170
## Divergences from upstream
154
171
You can’t perform that action at this time.
0 commit comments