You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two link-time issues with newer versions of arm-none-eabi-gcc
The first one is related to some missing symbols:
[...]/libc_nano.a(libc_a-closer.o): in function `_close_r':
[...]/closer.c:47: warning: _close is not implemented and will always fail
[...]/libc_nano.a(libc_a-lseekr.o): in function `_lseek_r':
[...]/lseekr.c:49: warning: _lseek is not implemented and will always fail
[...]/libc_nano.a(libc_a-readr.o): in function `_read_r':
[...]/readr.c:49: warning: _read is not implemented and will always fail
[...]/libc_nano.a(libc_a-writer.o): in function `_write_r':
[...]/writer.c:49: warning: _write is not implemented and will always fail
A work-around for this issue is to add the following lines in a .c file (e.g. source/daplink/sdk_stub.c):
The other issue relates to the permission of the RAM segment (needed in some cases for RAM functions when writing to flash):
warning: build/xxxxx.elf has a LOAD segment with RWX permissions
The work-around is add -Wl,--no-warn-rwx-segment to ld_flags in records/tools/gcc_arm.yaml. This is not a solution we could just merge because the flag is not supported by older versions of arm-none-eabi-gcc. Another alternative would be to remove -Werror, but that seems even worse.
The text was updated successfully, but these errors were encountered:
There are two link-time issues with newer versions of
arm-none-eabi-gcc
The first one is related to some missing symbols:
A work-around for this issue is to add the following lines in a .c file (e.g. source/daplink/sdk_stub.c):
The other issue relates to the permission of the RAM segment (needed in some cases for RAM functions when writing to flash):
The work-around is add
-Wl,--no-warn-rwx-segment
told_flags
inrecords/tools/gcc_arm.yaml
. This is not a solution we could just merge because the flag is not supported by older versions ofarm-none-eabi-gcc
. Another alternative would be to remove-Werror
, but that seems even worse.The text was updated successfully, but these errors were encountered: