I want to build a 64-bit module.And it will use some function from user 
space,and I do like follow :
   ar -x /lib/libc.a memmove.o
next,I try to ld:
   ld -o mymod -r mymod.o strstr.o 
and I got error:
 ld:fatal:file strstr.o:wrong ELF class:ELFCLASS32
 ld:fatal:File processing errors.No output written to mymod.
I  know the strstr.o I got from libc.a is 32-bit,and rhe error appeared.but I 
don't know how to resolve it.
Thank you everyone for your assistance.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to