https://sourceware.org/bugzilla/show_bug.cgi?id=30376

--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Pali Rohár from comment #2)

> 98f2e089891cae87147f74948f694565) for which GNU windres generates shell32.rc
> file with same syntax errors.

Thanks - with that I can reproduce the problem.  (Interestingly some of the
other versions of the shell32.dll file from that site do not exhibit the
problem).


(In reply to Pali Rohár from comment #1)
> i686-w64-mingw32-windres: shell32.rc:6473: syntax error

The problem is this line:

  6472 "REGINST" "REGINST"

The binutils RC parser combines adjacent quoted strings into a single string
with a single space between them, in the same way as the C pre-processor.   So
the parser thinks that a resource called "REGINST REGINST" is being declared
and spaces are not allowed in resource names...

I do not think changing the behaviour of the parser is a good idea, since there
may be projects out there that depend upon the current behaviour.  Instead I am
looking at changing the COFF to RC converter so that it does not emit resource
names enclosed inside quotes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to