This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch win32]: Allow exports of def-file reserved keywords as symbol


Hello,

this patch fixes a small nit in respect to the dllexport attribute and
x64 windows without leading underscores. As it is possible now that
somebody tries to export symbol (for example) named 'data', which is a
reserved keyword of def-file parser present in ld, the export would
fail by a linker error. By quoting the symbol name by ', this issue is
fixed.

ChangeLog

        * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
        in directive -export.

I'll apply this patch in a couple of hours, if there are no objections.

Kai


-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: adjust_win32_directive.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]