Skip to content

Conversation

@Gary-Hobson
Copy link
Contributor

Summary

libc/mcount: add armv6m mcount implementation

armv6m does not support the complete Thumb-2 instruction set, resulting in compilation errors

CC: dirent/lib_alphasort.c mcount.S: Assembler messages:
mcount.S:33: Error: cannot honor width suffix -- bic r1,lr,#1' mcount.S:35: Error: cannot honor width suffix -- bic r0,r0,#1'
mcount.S:37: Error: cannot honor width suffix -- `pop {r0,r1,r2,r3,ip,lr}'

Impact

Testing

raspberrypi-pico/nsh

@github-actions github-actions bot added Area: OS Components OS Components issues Size: S The size of the change in this PR is small labels Jul 4, 2025
acassis
acassis previously approved these changes Jul 4, 2025
@xiaoxiang781216 xiaoxiang781216 linked an issue Jul 5, 2025 that may be closed by this pull request
1 task
@simbit18
Copy link
Contributor

simbit18 commented Jul 5, 2025

@Gary-Hobson Can you align CMakefile as well?

if(CONFIG_PROFILE_MINI)

if(CONFIG_LIBC_ARCH_ELF)

@Gary-Hobson
Copy link
Contributor Author

@Gary-Hobson Can you align CMakefile as well?

if(CONFIG_PROFILE_MINI)

if(CONFIG_LIBC_ARCH_ELF)

Done

acassis
acassis previously approved these changes Jul 9, 2025
mcount.S: Assembler messages:
mcount.S:33: Error: cannot honor width suffix -- `bic r1,lr,#1'
mcount.S:35: Error: cannot honor width suffix -- `bic r0,r0,#1'
mcount.S:37: Error: cannot honor width suffix -- `pop {r0,r1,r2,r3,ip,lr}

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 156ef05 into apache:master Jul 10, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] profile: compilation fails ("cannot honor width suffix")

6 participants