Re: dynamische Bibliothek umbennenen unter x64

From: Marc Santhoff <M.Santhoff(at)web.de>
Date: Sat, 23 May 2015 12:40:38 +0200

Moin,

erste Erkenntnis, ohne bereits was probiert zu haben:

Der Name steht drin.

$ readelf -d /usr/local/lib/libhdf5.so.0

Dynamic section at offset 0x1b5b90 contains 23 entries:
  Tag Type Name/Value
 0x0000000000000001 (NEEDED) Shared library: [libz.so.6]
 0x0000000000000001 (NEEDED) Shared library: [libm.so.5]
 0x0000000000000001 (NEEDED) Shared library: [libc.so.7]
 0x000000000000000e (SONAME) Library soname: [libhdf5.so.0]
..

Sieht aber erstmal so aus, als wäre das unabhängig vom Binärformat, also
z.B. bei i86/32 Bit genauso.

$ readelf -d /usr/lib32/libc.so

Dynamic section at offset 0x10413c contains 21 entries:
  Tag Type Name/Value
 0x0000000e (SONAME) Library soname: [libc.so.7]

Hmm. Also die Bibliothek patchen oder mal gucken, ob man simpel dem
Compiler bzw. Linker einen anderen Namen unterschieben kann ...

-- 
Marc Santhoff <M.Santhoff(at)web.de>
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sat 23 May 2015 - 12:42:18 CEST

search this site