lkml.org 
[lkml]   [2000]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectHow can I convert a dynamically linked binary into a static one?
Hi!

I have a dynamically linked binary (without source code) and the
libraries necessary to run it and I want to convert it into a statically
linked binary that runs without these libraries.

How can I do that?


The problem I have is a glibc5-binary on a glibc6 system which ignores
LD_LIBRARY_PATH. So I don't know how to stop the binary doing suicide by
eating the libc6-linked libX11 on my system which makes it die on
SIGSEGV.

I would like to explicitely specify the libraries which this binary
should be statically linked with, so that it gets the right libraries to
run.


Greetings, Michael

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.088 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site