[PATCH] D63244: Support wildcard patterns in --undefined.

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 08:32:26 PDT 2019


jyknight added a comment.

Actually linker scripts do support metacharacter escaping (although, it seems lld does not support this correctly, yet).

E.g., this should match only a function named literally "?"

  VER {
    global:
     "?";
  };

While this matches any one-letter function:

  VER {
    global:
     ?;
  };

So perhaps this functionality should be given its own command-line argument, e.g. `--undefined-glob`, so as to not cause any such confusion.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63244/new/

https://reviews.llvm.org/D63244





More information about the llvm-commits mailing list