qemu-arm 8.1.0 Error mapping file: Operation not permitted
Host environment
- Operating system: ubuntu 22.04
- OS/kernel version: Linux Desktop 6.2.0-32-generic #32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
- Architecture: x86
- QEMU flavor: qemu-arm
- QEMU version: version 8.1.0 (v8.1.0)
- QEMU command line:
./qemu-arm hello_world
Emulated/Virtualized environment
- Operating system: bare matel
- OS/kernel version:
- Architecture: arm
Description of problem
failed to execute the cortex-m binary hello_world, and says: qemu-arm: /home/user/work/tests/c/hello_world: Error mapping file: Operation not permitted
Steps to reproduce
cat > hello_new.c <<EOF
#include <stdio.h>
int main()
{printf("hello world"); return 0;}
EOF
arm-none-eabi-gcc -mcpu=cortex-m55 -g hello_world.c -o hello_world -specs=rdimon.specs
qemu-arm -cpu cortex-m55 hello_world
qemu-arm: /home/user/work/tests/c/hello_world: Error mapping file: Operation not permitted
Additional information
1, version 8.0.4 version is okay
2, arm-none-eabi-gcc version is 10.3.1 20210824 (release)