]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/prelink/prelink-20031029/dso.c.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / prelink / prelink-20031029 / dso.c.patch
1 --- prelink-0.0.20030902.orig/src/dso.c 2003-08-11 11:55:11.000000000 +0000
2 +++ prelink-0.0.20030902/src/dso.c      2003-09-16 23:26:16.000000000 +0000
3 @@ -334,7 +334,13 @@
4        }
5      else
6        sections[--k] = i;
7 +/* this fails for the statically linked upx executable
8    assert (j == k);
9 +*/
10 +  if (j != k) {
11 +      printf("assert(j == k) at dso.c:311 has failed for file %s\n", name);
12 +      goto error_out;
13 +  }
14  
15    section_cmp_dso = dso;
16    qsort (sections + k, dso->ehdr.e_shnum - k, sizeof (*sections), section_cmp);