mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
[LLD][COFF] Add support for -includeglob on ARM64X (#129515)
Include symbols from both symbol tables.
This commit is contained in:
@@ -2568,7 +2568,8 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
|
||||
|
||||
// Handle /includeglob
|
||||
for (StringRef pat : args::getStrings(args, OPT_incl_glob))
|
||||
ctx.symtab.addUndefinedGlob(pat);
|
||||
ctx.forEachSymtab(
|
||||
[&](SymbolTable &symtab) { symtab.addUndefinedGlob(pat); });
|
||||
|
||||
// Create wrapped symbols for -wrap option.
|
||||
ctx.forEachSymtab([&](SymbolTable &symtab) {
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
// RUN: llvm-readobj --hex-dump=.test %t.dll | FileCheck %s
|
||||
// CHECK: 0x180004000 01000000 01000000
|
||||
|
||||
// RUN: lld-link -machine:arm64x -dll -noentry -out:%t-glob.dll %t-test.lib -includeglob:sym
|
||||
// RUN: llvm-readobj --hex-dump=.test %t-glob.dll | FileCheck %s
|
||||
|
||||
.globl sym
|
||||
.section .test,"dr"
|
||||
sym:
|
||||
|
||||
Reference in New Issue
Block a user