Jordan Rupprecht
edeebad771
[llvm-objcopy] Add support for shell wildcards
...
Summary: GNU objcopy accepts the --wildcard flag to allow wildcard matching on symbol-related flags. (Note: it's implicitly true for section flags).
The basic syntax is to allow *, ?, \, and [] which work similarly to how they work in a shell. Additionally, starting a wildcard with ! causes that wildcard to prevent it from matching a flag.
Use an updated GlobPattern in libSupport to handle these patterns. It does not fully match the `fnmatch` used by GNU objcopy since named character classes (e.g. `[[:digit:]]`) are not supported, but this should support most existing use cases (mostly just `*` is what's used anyway).
Reviewers: jhenderson, MaskRay, evgeny777, espindola, alexshap
Reviewed By: MaskRay
Subscribers: nickdesaulniers, emaste, arichardson, hiraditya, jakehehrlich, abrachet, seiya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66613
llvm-svn: 375169
2019-10-17 20:51:00 +00:00
..
2019-07-30 13:37:02 +00:00
2019-04-03 14:53:42 +00:00
2019-07-29 16:22:40 +00:00
2019-08-30 10:17:16 +00:00
2019-10-17 11:21:54 +00:00
2019-08-15 09:45:09 +00:00
2019-06-04 10:13:03 +00:00
2019-04-03 14:53:42 +00:00
2019-01-23 11:54:51 +00:00
2019-05-22 13:23:26 +00:00
2019-06-14 02:04:02 +00:00
2019-04-03 14:53:42 +00:00
2019-10-11 12:50:57 +00:00
2019-05-02 11:53:02 +00:00
2019-04-03 14:53:42 +00:00
2019-09-14 01:36:16 +00:00
2019-09-14 01:36:31 +00:00
2019-10-02 12:41:25 +00:00
2019-10-11 12:50:57 +00:00
2019-07-30 13:37:02 +00:00
2019-01-28 15:02:40 +00:00
2019-09-25 03:41:01 +00:00
2019-10-11 12:50:57 +00:00
2019-10-11 12:50:57 +00:00
2019-02-26 09:24:22 +00:00
2019-10-11 12:50:57 +00:00
2019-04-03 14:53:42 +00:00
2019-06-14 02:04:02 +00:00
2019-05-01 05:27:20 +00:00
2019-05-01 05:27:20 +00:00
2019-06-14 02:04:02 +00:00
2019-05-01 05:27:20 +00:00
2019-06-10 18:35:01 +00:00
2019-05-01 05:27:20 +00:00
2019-06-10 18:35:01 +00:00
2019-04-02 14:11:13 +00:00
2019-06-17 02:03:45 +00:00
2019-04-03 14:53:42 +00:00
2019-05-03 14:14:01 +00:00
2019-04-03 14:53:42 +00:00
2019-05-22 13:23:26 +00:00
2019-04-03 14:53:42 +00:00
2019-04-03 14:53:42 +00:00
2019-10-11 12:50:57 +00:00
2019-06-21 14:15:15 +00:00
2019-04-30 11:02:09 +00:00
2019-05-23 00:42:46 +00:00
2019-05-23 00:42:46 +00:00
2019-08-20 15:34:07 +00:00
2019-01-23 01:42:02 +00:00
2019-04-03 14:53:42 +00:00
2019-05-22 13:23:26 +00:00
2019-04-03 14:53:42 +00:00
2019-09-05 14:25:57 +00:00
2019-04-03 14:53:42 +00:00
2019-04-03 14:53:42 +00:00
2019-09-14 01:14:43 +00:00
2019-05-22 13:23:26 +00:00
2019-06-14 08:09:10 +00:00
2019-05-30 09:09:01 +00:00
2019-09-25 03:41:01 +00:00
2019-07-05 11:28:49 +00:00
2019-09-05 14:25:57 +00:00
2019-09-05 14:25:57 +00:00
2019-07-30 13:37:02 +00:00
2019-04-03 14:53:42 +00:00
2019-05-01 05:55:22 +00:00
2019-05-01 05:55:22 +00:00
2019-02-06 11:00:07 +00:00
2019-02-06 11:00:07 +00:00
2019-04-03 14:53:42 +00:00
2019-04-03 14:53:42 +00:00
2019-05-10 12:58:52 +00:00
2019-08-30 13:39:22 +00:00
2019-04-03 14:53:42 +00:00
2019-05-01 05:27:20 +00:00
2019-09-04 09:19:31 +00:00
2019-07-22 22:23:52 +00:00
2019-07-04 22:45:27 +00:00
2019-09-14 01:36:16 +00:00
2019-05-22 13:23:26 +00:00
2019-05-23 00:42:46 +00:00
2019-05-02 11:53:02 +00:00
2019-07-10 23:32:44 +00:00
2019-04-26 02:10:10 +00:00
2019-05-24 15:04:50 +00:00
2019-09-17 08:38:53 +00:00
2019-09-17 08:38:53 +00:00
2019-06-07 17:57:48 +00:00
2019-06-21 14:15:15 +00:00
2019-05-08 09:49:35 +00:00
2019-04-03 14:53:42 +00:00
2019-09-05 14:25:57 +00:00
2019-10-11 12:50:57 +00:00
2019-06-14 02:04:02 +00:00
2019-04-04 17:35:41 +00:00
2019-05-23 00:42:46 +00:00
2019-05-23 00:42:46 +00:00
2019-07-23 08:03:30 +00:00
2019-03-14 11:47:41 +00:00
2019-04-03 14:53:42 +00:00
2019-05-22 04:48:26 +00:00
2019-01-23 11:54:51 +00:00
2019-05-23 00:42:46 +00:00
2019-05-08 09:49:35 +00:00
2019-05-10 12:58:52 +00:00
2019-05-10 12:58:52 +00:00
2019-04-03 14:53:42 +00:00
2019-06-14 02:04:02 +00:00
2019-06-14 02:04:02 +00:00
2019-07-22 22:23:52 +00:00
2019-09-14 01:14:43 +00:00
2019-08-20 15:00:07 +00:00
2019-05-22 13:23:26 +00:00
2019-07-23 08:03:30 +00:00
2019-07-23 08:03:30 +00:00
2019-10-02 12:41:25 +00:00
2019-02-21 17:05:19 +00:00
2019-01-29 15:05:38 +00:00
2019-06-14 02:04:02 +00:00
2019-05-10 12:58:52 +00:00
2019-03-18 14:27:41 +00:00
2019-07-30 13:37:02 +00:00
2019-07-30 13:37:02 +00:00
2019-04-03 14:53:42 +00:00
2019-04-03 14:53:42 +00:00
2019-10-11 12:50:57 +00:00
2019-04-26 02:10:10 +00:00
2019-04-03 14:53:42 +00:00
2019-04-03 14:53:42 +00:00
2019-08-02 18:22:46 +00:00
2019-05-22 13:23:26 +00:00
2019-06-14 02:04:02 +00:00
2019-03-14 11:47:41 +00:00
2019-05-22 13:23:26 +00:00
2019-05-23 00:42:46 +00:00
2019-10-11 12:50:57 +00:00
2019-05-23 00:42:46 +00:00
2019-04-03 14:53:42 +00:00
2019-07-23 08:03:30 +00:00
2019-08-23 14:28:58 +00:00
2019-05-21 09:09:33 +00:00
2019-04-26 02:10:10 +00:00
2019-03-18 14:27:41 +00:00
2019-08-30 13:39:22 +00:00
2019-05-01 09:28:24 +00:00
2019-05-23 00:42:46 +00:00
2019-05-02 11:53:02 +00:00
2019-05-10 12:58:52 +00:00
2019-04-03 14:53:42 +00:00
2019-04-03 14:53:42 +00:00
2019-10-17 20:51:00 +00:00
2019-10-17 20:51:00 +00:00