https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123504

--- Comment #7 from Bruno Haible <bruno at clisp dot org> ---
(In reply to Peter Damianov from comment #5)
> $ x86_64-w64-mingw32-windres test.rc -o test.res
> $ x86_64-w64-mingw32-windres test.rc -o test.o

Neither of these is what I am using. I am using the command

$ x86_64-w64-mingw32-windres `/bin/sh ./../windows/windres-options --escape
1.18` -i ./../windows/iconv.rc -o iconv.res --output-format=coff

The format of the resulting file:

$ file iconv.res
iconv.res: data

$ od -t x1 < iconv.res | head -n 2
0000000 64 86 01 00 00 00 00 00 06 06 00 00 01 00 00 00
0000020 00 00 04 00 2e 72 73 72 63 00 00 00 00 00 00 00

> Unfortunately windres doesn't do any sort of file format detection by looking 
> at the binaries.

Then the compiler driver needs to look at the file format of the input file, in
order to determine whether to invoke windres or not?

Reply via email to