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) {
25682568
25692569 // Handle /includeglob
25702570 for (StringRef pat : args::getStrings (args, OPT_incl_glob))
2571- ctx.symtab .addUndefinedGlob (pat);
2571+ ctx.forEachSymtab (
2572+ [&](SymbolTable &symtab) { symtab.addUndefinedGlob (pat); });
25722573
25732574 // Create wrapped symbols for -wrap option.
25742575 ctx.forEachSymtab ([&](SymbolTable &symtab) {
Original file line number Diff line number Diff line change 1111// RUN: llvm-readobj --hex-dump=.test %t.dll | FileCheck %s
1212// CHECK: 0x180004000 01000000 01000000
1313
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+
1417 .globl sym
1518 .section .test ,"dr"
1619sym:
You can’t perform that action at this time.
0 commit comments