Hi,
I have an Davinci evaluation kit and got an montavista tool chain
along with the kit.
I am trying to make an shared object(*.so) out of a .out file and a
static library(*.a) and few other libraries. e. g.
ld -o XXX.so yyy.a zzz.o -lstdc++ -lpthread
The static library contains binaries whose source is not available and
are compiled to EABI version 'gnu' but our g++ compiles the code to EABI
version 4.
I am getting an warning
ld: YYY.a(ZZZ.o): warning: duplicate section `.note.gnu.arm.ident'
has different contents
and then I am getting the error at the time of linking, it is not able
to merge this EABI version 'gnu' data into XXX.so which is targeted to
compile with EABI version 4.
Exact error is something like this
/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld:
ERROR: Source object YYY.a(ZZZ.o) has EABI version 0, but target XXX.so has
EABI version 4
/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld:
failed to merge target specific data of file YYY.a(ZZZ.o)
I tried with simple hello.c and compiled code with EABI version 0 and
for that I am using flag “-meabi” for eg:
arm_v5t_le-g++ hello.c -o hello -meabi=gnu
and it reproduced a similar error.
How can I be out of this problem.
Regards,
Rakesh KN
Regards,
Rakesh KN
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Pvt. Ltd. does not accept any liability for virus infected mails.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source