aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakub <jakub@94c539fb-cf18-0410-b60f-edeeb537fa16>2006-07-18 13:54:09 +0000
committerjakub <jakub@94c539fb-cf18-0410-b60f-edeeb537fa16>2006-07-18 13:54:09 +0000
commitb9dc3e5f7b3566e23bb8336ed4b610a690761f3e (patch)
tree67d885adce1865195117cd3e05b3be8920109f38
parentaaa92aa83a848159cbb1bff661a73fdffbb5edf9 (diff)
downloadprelink-cross-b9dc3e5f7b3566e23bb8336ed4b610a690761f3e.tar.gz
prelink-cross-b9dc3e5f7b3566e23bb8336ed4b610a690761f3e.tar.bz2
prelink-cross-b9dc3e5f7b3566e23bb8336ed4b610a690761f3e.zip
20030805
git-svn-id: http://sourceware.org/svn/prelink@89 94c539fb-cf18-0410-b60f-edeeb537fa16
-rw-r--r--doc/prelink.824
-rw-r--r--src/prelink.h2
-rwxr-xr-xtestsuite/movelibs.sh2
3 files changed, 25 insertions, 3 deletions
diff --git a/doc/prelink.8 b/doc/prelink.8
index 0f56318..c8478b0 100644
--- a/doc/prelink.8
+++ b/doc/prelink.8
@@ -1,4 +1,4 @@
-.TH prelink 8 "14 July 2002"
+.TH prelink 8 "5 August 2003"
.SH NAME
prelink \- prelink ELF shared libraries and binaries to speed up startup time
.SH SYNOPSIS
@@ -109,6 +109,12 @@ be assigned to all libraries.
Normally, only binaries or libraries which are either not prelinked yet, or
some of their dependencies changed, are prelinked.
.TP
+.B \-q \-\-quick
+Run prelink in quick mode. This mode checks just mtime and ctime timestamps
+of libraries and binaries stored in the cache file. If they are unchanged
+from the last prelink run, it is assumed that the library in question did
+not change and no parsing of its ELF headers and verifying it is done.
+.TP
.B \-p \-\-print\-cache
Print the content of the cache file (normally
.IR /etc/prelink.cache )
@@ -167,6 +173,22 @@ Similarly with message digests and checksums (unless you trigger the
unprobable case of modified file and original file having the same digest
or checksum).
.TP
+.B \-\-md5
+This is similar to
+.I \-\-verify
+option, except instead of outputing the content of the binary or library
+before prelinking to standard output MD5 digest is printed.
+See
+.BR md5sum (1).
+.TP
+.B \-\-sha
+This is similar to
+.I \-\-verify
+option, except instead of outputing the content of the binary or library
+before prelinking to standard output SHA1 digest is printed.
+See
+.BR sha1sum (1).
+.TP
.B \-V \-\-version
Print version and exit.
.TP
diff --git a/src/prelink.h b/src/prelink.h
index b03c95e..c96d8d4 100644
--- a/src/prelink.h
+++ b/src/prelink.h
@@ -209,7 +209,7 @@ READWRITEPROTO(be,64)
const char * strptr (DSO *dso, int sec, off_t offset);
#define PL_ARCH \
-static struct PLArch plarch __attribute__((section("pl_arch"),unused))
+static struct PLArch plarch __attribute__((section("pl_arch"),used))
#define addr_adjust(addr, start, adjust) \
do { \
diff --git a/testsuite/movelibs.sh b/testsuite/movelibs.sh
index 38fc58b..137d7ef 100755
--- a/testsuite/movelibs.sh
+++ b/testsuite/movelibs.sh
@@ -6,9 +6,9 @@ $CXX -o movelibs movelibs.C
> syslib.list
> syslnk.list
for i in `ldd ./movelibs | awk ' { print $3 } '`; do
+ k=`basename $i`
if [ -L $i ]; then
j=`ls -l $i | sed 's/^.* -> //'`
- k=`basename $i`
if echo $j | grep / >/dev/null 2>&1; then
cp -p $i .
cp -p $k $k.orig