Page MenuHomePhabricator

Arm GNU toolchain version greater than 11.2 has a linker issue in syscall
Open, NormalPublic

Description

Arm GNU toolchain version greater than 11.2 will throw out warnings during linking

closer.c:(.text._close_r+0xc): warning: _close is not implemented and will always fail
lseekr.c:(.text._lseek_r+0x10): warning: _lseek is not implemented and will always fail
readr.c:(.text._read_r+0x10): warning: _read is not implemented and will always fail

These link warnings will terminate build.

According to Arm GNU toolchain developers, developers are expected to provide all system calls implementation when using nosys.specs in new Arm GNU toolchain version.

So far, Arm GNU toolchain >= 11.3 is not supported in TF-Mv1.8.0, as a workaround. Users are suggested to use other versions <= 11.2 instead.
TF-M is working on to fix this issue via https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/20612.

Event Timeline

davidhuziji triaged this task as Normal priority.Apr 25 2023, 7:05 AM
davidhuziji created this task.
davidhuziji created this object with edit policy "Task Author".
davidhuziji updated the task description. (Show Details)
davidhuziji updated the task description. (Show Details)Apr 25 2023, 7:08 AM
davidhuziji updated the task description. (Show Details)

I had a great time reading your content and found it to be really beneficial. Please join me in playing only up if you have some free time.

Excellent stuff; I'll let my friends know about it and have them check it out. I appreciate you sharing! Whenever you have more time, go to: trap the cat