Jaya Krishna
Jaya Krishna

Reputation:

On Solaris Sparc 64bit, Can a 64bit process load a 32 bit shared library

On a 64bit Solaris Sparc system, can an Apache Server built in 64bit mode load a 32 bit plug-in?

Upvotes: 1

Views: 331

Answers (2)

R Samuel Klatchko
R Samuel Klatchko

Reputation: 76541

No, it is not possible. When a 64 bit process tries to load a 32 bit shared object, the runtime linker gives the following error:

ld.so.1: app: fatal: ./lib32.so: wrong ELF class: ELFCLASS32

Upvotes: 2

EFraim
EFraim

Reputation: 13028

On no sensible system 64-bit binary cannot load 32-bit shared library. They might pass pointers around, you know.

Upvotes: 0

Related Questions