Hi,
Here is a patch to make the kit build cleanly with clang.
Index: readelf/readelf.c
===================================================================
--- readelf/readelf.c (revision 402)
+++ readelf/readelf.c (working copy)
@@ -1296,7 +1296,7 @@
Elf_Data *d;
GElf_Sym sym;
const char *name;
- int stab, j;
+ int elferr, stab, j;
s = &re->sl[i];
stab = s->link;
@@ -1354,7 +1354,7 @@
uint32_t nbucket, nchain;
uint32_t *bucket, *chain;
uint32_t *bl, *c, maxl, total;
- int i, j;
+ int elferr, i, j;
/* TODO: Add support for .gnu.hash section. */
Index: size/size.c
===================================================================
--- size/size.c (revision 402)
+++ size/size.c (working copy)
@@ -834,7 +834,7 @@
void
usage()
{
- (void) fprintf(stderr, usagemsg);
+ (void) fprintf(stderr, "%s", usagemsg);
exit(EX_USAGE);
}
Regards
--
Pawel
|