anchao opened a new pull request #5527: URL: https://github.com/apache/incubator-nuttx/pull/5527
## Summary libs/libnx: workaround for compile issue on cortex-M0 ``` $ arm-none-eabi-gcc -c -g -Os -mcpu=cortex-m0 -isystem "include" -I "libs/libnx" nxmu/nx_eventhandler.c -o bin/nx_eventhandler.o /tmp/ccpLXGgi.s: Assembler messages: /tmp/ccpLXGgi.s: Error: unaligned opcodes detected in executable segment ``` This issue only reproduced if run "**-g -Os -mcpu=cortex-m0**" at same time. ``` $ arm-none-eabi-gcc -v gcc version 10.3.1 20210621 (release) (GNU Arm Embedded Toolchain 10.3-2021.07) $ arm-none-eabi-gcc -c -g -Os -mcpu=cortex-m0 -isystem "include" -I "libs/libnx" nxmu/nx_eventhandler.c -o bin/nx_eventhandler.o /tmp/ccpLXGgi.s: Assembler messages: /tmp/ccpLXGgi.s: Error: unaligned opcodes detected in executable segment break line: 106 int nx_eventhandler(NXHANDLE handle) 107 { ... 121 int errcode = _NX_GETERRNO(nbytes); ... ``` Signed-off-by: chao.an <anc...@xiaomi.com> ## Impact link issue: https://github.com/apache/incubator-nuttx/issues/5449 ## Testing ci check -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org