- if (checkfile(fn, want,perr,quiet)) {
+ if ((type = checkfile(fn, want, perr)) & want) {
+ if (printtype) {
+ switch (type) {
+ case RELOCATABLE:
+ printf("relocatable "); break;
+ case EXECUTABLE:
+ printf("executable "); break;
+ case DYNAMIC:
+ printf("dynamic "); break;
+ case CORE:
+ printf("core "); break;
+ default:
+ printf("notelf "); break;
+ }
+ }