Andy Koppe wrote: > Apologies for having failed to google an answer, but is there an easy > way in Cygwin to find out which Windows subsystem an executable > targets? > > More specfically, is rxvt a 'console' or a 'windows' program?
In general, when you want to know about an executable or library file format or details or contents, think "binutils!" to yourself :) $ objdump -p /bin/rxvt.exe /bin/rxvt.exe: file format pei-i386 Characteristics 0x30f relocations stripped executable line numbers stripped symbols stripped 32 bit words debugging information removed Time/Date Sun Nov 16 05:27:17 2008 Magic 010b (PE32) MajorLinkerVersion 2 MinorLinkerVersion 56 SizeOfCode 00020600 SizeOfInitializedData 0000d800 SizeOfUninitializedData 00000c00 AddressOfEntryPoint 00001000 BaseOfCode 00001000 BaseOfData 00022000 ImageBase 00400000 SectionAlignment 00001000 FileAlignment 00000200 MajorOSystemVersion 4 MinorOSystemVersion 0 MajorImageVersion 1 MinorImageVersion 0 MajorSubsystemVersion 4 MinorSubsystemVersion 0 Win32Version 00000000 SizeOfImage 00032000 SizeOfHeaders 00000400 CheckSum 0003226c Subsystem 00000003 (Windows CUI) DllCharacteristics 00000000 SizeOfStackReserve 00200000 SizeOfStackCommit 00001000 SizeOfHeapReserve 00100000 SizeOfHeapCommit 00001000 LoaderFlags 00000000 NumberOfRvaAndSizes 00000010 [ ... much more snipped ... ] cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/