Linking with 32bit libs

Y B ybusenet at yahoo.com
Tue Nov 18 00:38:07 CET 2003


Hi,

I am using a 32 bit closed source i386 library. Does 
the current ABI allow linking of 32 bit library into 
64 bit application? If not, is there a way to use such

an library (e.g. by writing some stubs etc)?

Concievably it could be done (with some restriction 
like no access to globals by the lib) by placing all
32
bit code on separate code page and putting stubs 
between the 32 bit calls and 64 bit app.

On SuSE linux, ld crashes (dumps core) with an error 
message. 

collect2: ld terminated with signal 11 [Segmentation
fault], core dumped
/usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/../../../../x86_64-suse-linux/bin/ld:
warning: i386 architecture of input file `zoo.o' is
incompatible with i386:x86-64 output


Regards,
--
YB

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree



More information about the discuss mailing list