Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 11
Registered: ‎09-28-2012
My Device: Playbook
My Carrier: N/A

Relocations in generic ELF

Using QNX Momentics (BlackBerry NDK 2.0.1), i get this error:

/Developer/SDKs/bbndk-2.0.1/host/macosx/x86/usr/bin/ntoarm-ld: Classes/ZLevels.o: Relocations in generic ELF (EM: 3)
Classes/ZLevels: could not read symbols: File in wrong format


How can this be solved?


Please let me know if I should post this question elsewhere.

Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Relocations in generic ELF

Trying to run x86 code on PlayBook or arm code on Simulator?

Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Relocations in generic ELF

New Member
Posts: 1
Registered: ‎08-06-2008
My Device: Not Specified

Re: Relocations in generic ELF

I found that the linker complains with that error message if it receives object files compiled for a different target.  Both the compiler and the linker should receive same target names in the -V option such as -Vgcc_ntoarmv7le.