Hi Xinyu,
The error reported by the cross compiler in "_sbrk" is "sbrk.c:21: undefined reference to `end'", seems to happen in the standalone clone of TF-M Git clone as well as the one under Zephyr "v3.4.0" (which is TF-M hash '79a6115d3', your commit dated 'Mon Apr 10 14:43:47 2023').
However the one under Zephyr's TF-M (same hash of "79a6115d3") builds ok when compiled via Zephyr's "west" build system.
Also, if I grep for the "79a6115d3" hash in standalone TF-M Git clone, I do not find it.
I am not sure how to reconcile these different observations. I would appreciate any thought.
Regards, -Arun.