Linking with 32bit libs

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


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
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 

collect2: ld terminated with signal 11 [Segmentation
fault], core dumped
warning: i386 architecture of input file `zoo.o' is
incompatible with i386:x86-64 output


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

More information about the discuss mailing list