mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.6k stars 1.63k forks source link

nasm project test segfaults when IA32 kernel support is disabled #5848

Open floppym opened 5 years ago

floppym commented 5 years ago

When the test cases/nasm/1 configure file test is run on on a Linux system running a kernel with CONFIG_IA32_EMULATION disabled, the resulting program will be terminated with signal SIGSEGV.

This seems to occur because the kernel does not support the int 0x80 system call entry method.

Also, it's a little risky to use int 0x80 on a 64-bit binary, even if IA32 kernel support is enabled. This entry method only supports 32-bit pointers.

The hello.asm program should be updated to use the native syscall instruction on x86-64 systems to avoid this problem.

See downstream bug report: https://bugs.gentoo.org/668070

williamh commented 5 years ago

Can we have an update on this?

Thanks much. :-)