From: Edouard Tisserant References: <594f0ba9-8e01-d2d2-a58e-2abcb3b72289@gmail.com> <74da7f07-6df9-5a5f-ff63-b414437749b2@xenomai.org> <1dbe3f00-a866-248c-3799-a0d8efeee4e4@gmail.com> <2e75fd33-8998-4cfb-6fa6-bef20f37f2dc@gmail.com> <9c2a8966-09c2-cc32-9a7b-fe16339d9c80@gmail.com> Message-ID: <6430f861-a017-02e8-ba19-9a75aedc9475@gmail.com> Date: Wed, 9 May 2018 12:27:22 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [Xenomai] Crash with longer dlopen/dlcose sequence List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum , "Xenomai (xenomai@xenomai.org)" >> [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.