File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2568,7 +2568,8 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
2568
2568
2569
2569
// Handle /includeglob
2570
2570
for (StringRef pat : args::getStrings (args, OPT_incl_glob))
2571
- ctx.symtab .addUndefinedGlob (pat);
2571
+ ctx.forEachSymtab (
2572
+ [&](SymbolTable &symtab) { symtab.addUndefinedGlob (pat); });
2572
2573
2573
2574
// Create wrapped symbols for -wrap option.
2574
2575
ctx.forEachSymtab ([&](SymbolTable &symtab) {
Original file line number Diff line number Diff line change 11
11
// RUN: llvm-readobj --hex-dump=.test %t.dll | FileCheck %s
12
12
// CHECK: 0x180004000 01000000 01000000
13
13
14
+ // RUN: lld-link -machine:arm64x -dll -noentry -out:%t-glob.dll %t-test.lib -includeglob:sym
15
+ // RUN: llvm-readobj --hex-dump=.test %t-glob.dll | FileCheck %s
16
+
14
17
.globl sym
15
18
.section .test ,"dr"
16
19
sym:
You can’t perform that action at this time.
0 commit comments