von 32 Bit auf 62 Bit
-
Hi,
ich muß ein Programm von einer 32 Bit Version auf ein 64 Bit System überführen.
Nach dem kompilieren aller Datein und erstellen der Libaries in 64 Bit
sp936399@linuxhtc01:~/lib[583]$ readelf -h libgenalg3.so
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0xfdc0
Start of program headers: 64 (bytes into file)
Start of section headers: 231480 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 5
Size of section headers: 64 (bytes)
Number of section headers: 29
Section header string table index: 26erfolgt beim aufruf des Programmes
error while loading shared libraries: libgenalg3.so.0: wrong ELF class: ELFCLASS64Kann mir jemand helfen? Warum kann ich das Prgramm nicht so einfach neu in 64 Bit kompilieren?
Ich danke euch für die Hilfe
-
das programm, welches die bibliothek lädt muss auch für die x86_64 architektur kompiliert und gelinkt worden sein :xmas1:
-
Das Programm its auch in 64 BIT
~/src/pnetz3kombi[683]$ readelf -h pnetz3kombi
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x40e240
Start of program headers: 64 (bytes into file)
Start of section headers: 28138088 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 8
Size of section headers: 64 (bytes)
Number of section headers: 39
Section header string table index: 36