[Xenomai] Crash with longer dlopen/dlcose sequence

Edouard Tisserant edouard.tisserant at gmail.com
Wed May 9 12:27:22 CEST 2018


>> [Xenomai] bad syscall <0xf0002>
> #define __ARM_NR_BASE           (__NR_SYSCALL_BASE+0x0f0000)
> #define __ARM_NR_cacheflush     (__ARM_NR_BASE+2)

This special syscall is issued by Glibc in _dl_reloacate_object (see
/elf/dl-reloc.c and /sysdeps/unix/sysv/linux/arm/dl-machine.h)

As a workaround, rebuilding everything with -fPIC avoids relocation, and
then bad syscall.









More information about the Xenomai mailing list