Welcome!

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

Reply
Contributor
thorbjrn
Posts: 11
Registered: ‎09-28-2012
My Device: Playbook

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.

Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Relocations in generic ELF

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

Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB

Re: Relocations in generic ELF

New Member
ilgiz
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.

 

http://www.qnx.com/developers/docs/6.3.2/neutrino/utilities/q/qcc.html