X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Faout-target.h;h=214c4c5a4917aba3db99eb26ef0dda356fc57c3d;hb=975f8708de015fb2b813edbf8b714f4777c57a41;hp=365202e0ce3364d22a1ef647c413d94921af54f8;hpb=cb001c0d283dd884efe06770d033a50fb1bc6c7d;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/aout-target.h b/bfd/aout-target.h index 365202e0ce..214c4c5a49 100644 --- a/bfd/aout-target.h +++ b/bfd/aout-target.h @@ -180,7 +180,8 @@ MY (object_p) (bfd *abfd) #ifndef S_IXUSR #define S_IXUSR 0100 /* Execute by owner. */ #endif - if (stat (abfd->filename, &buf) == 0 && (buf.st_mode & S_IXUSR)) + if (stat (bfd_get_filename (abfd), &buf) == 0 + && (buf.st_mode & S_IXUSR) != 0) abfd->flags |= EXEC_P; } #endif /* ENTRY_CAN_BE_ZERO */