+2015-06-09 Mark Wielaard <mjw@redhat.com>
+
+ * strip.c (handle_ar): Mark as unused.
+ (process_file): Produce an error when trying to handle an ar.
+
2015-05-30 Mark Wielaard <mjw@redhat.com>
* elfcmp.c (main): Only call memcmp when d_size != 0.
/* Handle all files contained in the archive. */
static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
- struct timespec tvp[2]);
+ struct timespec tvp[2]) __attribute__ ((unused));
static int debug_fd = -1;
static char *tmp_debug_fname = NULL;
result = 1;
}
else
- result = handle_ar (fd, elf, NULL, fname, preserve_dates ? tv : NULL);
+ {
+ /* We would like to support ar archives, but currently it just
+ doesn't work at all since we call elf_clone on the members
+ which doesn't really support ar members.
+ result = handle_ar (fd, elf, NULL, fname,
+ preserve_dates ? tv : NULL);
+ */
+ error (0, 0, gettext ("%s: no support for stripping archive"),
+ fname);
+ result = 1;
+ }
break;
default: