[PATCH] D46245: [COFF] Improve correctness of def parsing for GNU features

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 5 12:56:40 PDT 2018


mstorsjo added a comment.

As a reference to resolve this misconception, GNU ld's manual has got the following grammar for the def files:

  EXPORTS
    ( (  ( <name1> [ = <name2> ] )
       | ( <name1> = <module-name> . <external-name>))
    [ @ <integer> ] [NONAME] [DATA] [CONSTANT] [PRIVATE] [== <name3>] ) *

(From https://sourceware.org/binutils/docs-2.29/ld/WIN32.html.) So both = and == do exist in GNU tools, but meaning different things.


https://reviews.llvm.org/D46245





More information about the llvm-commits mailing list