summaryrefslogtreecommitdiff
path: root/packages/prelink/prelink-20031029/dso.c.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/prelink/prelink-20031029/dso.c.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/prelink/prelink-20031029/dso.c.patch')
-rw-r--r--packages/prelink/prelink-20031029/dso.c.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/prelink/prelink-20031029/dso.c.patch b/packages/prelink/prelink-20031029/dso.c.patch
index e69de29bb2..1be2f52961 100644
--- a/packages/prelink/prelink-20031029/dso.c.patch
+++ b/packages/prelink/prelink-20031029/dso.c.patch
@@ -0,0 +1,16 @@
+--- prelink-0.0.20030902.orig/src/dso.c 2003-08-11 11:55:11.000000000 +0000
++++ prelink-0.0.20030902/src/dso.c 2003-09-16 23:26:16.000000000 +0000
+@@ -334,7 +334,13 @@
+ }
+ else
+ sections[--k] = i;
++/* this fails for the statically linked upx executable
+ assert (j == k);
++*/
++ if (j != k) {
++ printf("assert(j == k) at dso.c:311 has failed for file %s\n", name);
++ goto error_out;
++ }
+
+ section_cmp_dso = dso;
+ qsort (sections + k, dso->ehdr.e_shnum - k, sizeof (*sections), section_cmp);