char *name, *dynname;
Elf64_Dyn *dent;
+ if (ac < 2) {
+ fprintf(stderr, "usage: soname <file>\n");
+ exit(EXIT_FAILURE);
+ }
+
if (lstat(av[1], &sbuf) == -1) {
exit(1);
}
exit(1);
}
/* not at least the size of the elf header? */
- if (sbuf.st_size < sizeof(Elf64_Ehdr)) {
+ if ((size_t)sbuf.st_size < sizeof(Elf64_Ehdr)) {
exit(1);
}