Differences between version 5 and revision by previous author of SharedLibraryNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Sunday, May 22, 2005 9:01:25 pm | by CraigBox | Revert |
Older page: | version 4 | Last edited on Wednesday, February 23, 2005 2:31:24 pm | by SamJansen | Revert |
@@ -120,9 +120,18 @@
<verbatim>
nm /lib/libc.so.6 # doesn't work
nm --dynamic /lib/libc.so.6 # does work
</verbatim>
+
+!!!Help, I moved my library directory and now nothing runs!
+
+A misplaced / led me to moving everything from / to '/etc/old' - when you can't find the library loader, you can't even run bash builtins. Get around it like so:
+
+<pre>
+/etc/old/lib/ld-linux.so.2 /etc/old/bin/mv /etc/old/bin /
+</pre>
+
!!! See also
* Ulrich Drepper's [How to write shared libraries | http://people.redhat.com/drepper/dsohowto.pdf]
* Mike Hearn's [Writing shared libraries | http://navi.cx/~mike/writing-shared-libraries.html]