Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-05-01 Thread Pham, Phong
Hi Philippe, Below are the snippets compiled with -fPIC in the DSO. If I don't compile with -fPIC, I get this error: # bin/vxapp bin/vxapp: error while loading shared libraries: /usr/xenomai/lib/libscs750.so: R_PPC_REL24 relocation at 0x0ffacec4 for symbol `munmap' out of range If I do

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-19 Thread Philippe Gerum
On 04/19/2018 01:02 AM, Pham, Phong wrote: > “This is likely happening because the default auto-init glue module for > a final executable is mentioned in the flags, you either want to pass > --auto-init-solib if you do need auto-init for bootstrapping a DSO, or > --no-auto-init if you don't care

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-18 Thread Pham, Phong
“This is likely happening because the default auto-init glue module for a final executable is mentioned in the flags, you either want to pass --auto-init-solib if you do need auto-init for bootstrapping a DSO, or --no-auto-init if you don't care about auto-bootstrap, along with --ldflags to

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-18 Thread Philippe Gerum
On 04/18/2018 09:33 PM, Pham, Phong wrote: > > Hi, > > Instead of symbol `mmap' out of range, I now have symbol `malloc' out of > range. I removed all the -fPIC in my environment. I have to recompile > libc??? I never compiled libc and wants to avoid it. Of course not. > > Any

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-18 Thread Pham, Phong
Hi, Instead of symbol `mmap' out of range, I now have symbol `malloc' out of range. I removed all the -fPIC in my environment. I have to recompile libc??? I never compiled libc and wants to avoid it. Any suggestion on R_PPC_REL24 relocation at 0x0ffacd3c for symbol `mmap/malloc' out of

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-17 Thread Pham, Phong
Hi Philippe and all, Regarding "Your app may be missing symbol wrapping. Please check out this doc: https://xenomai.org/documentation/xenomai-3/html/xeno3prm/group__cobalt__api.html; Thanks for the tip. In the Makefile fragment from this link:

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-12 Thread Philippe Gerum
On 04/10/2018 09:03 PM, Pham, Phong wrote: > > Hi, > > According to page 651 > https://xenomai.org/documentation/xenomai-3/pdf/xeno3prm.pdf > > > This will make such region accessible via the mapper device using the > following sequence of code, via > the default ->mmap() handler from the UDD