File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2696,7 +2696,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
26962696
26972697 // Handle /output-def (MinGW specific).
26982698 if (auto *arg = args.getLastArg (OPT_output_def))
2699- writeDefFile (ctx, arg->getValue (), ctx. symtab .exports );
2699+ writeDefFile (ctx, arg->getValue (), mainSymtab .exports );
27002700
27012701 // Set extra alignment for .comm symbols
27022702 for (auto pair : config->alignComm ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ RUN: llvm-mc -filetype=obj -triple=aarch64-windows %S/Inputs/loadconfig-arm64.s
1414# A command-line export applies only to EC exports.
1515
1616RUN: lld-link -machine:arm64x -dll -out:out-cmd.dll arm64ec-func.obj arm64-func.obj \
17- RUN: loadconfig-arm64.obj loadconfig-arm64ec.obj -noentry -export:func
17+ RUN: loadconfig-arm64.obj loadconfig-arm64ec.obj -noentry -export:func -output-def:out.def
1818
1919RUN: llvm-objdump -d out-cmd.dll | FileCheck --check-prefix=DISASM-EC %s
2020DISASM-EC: Disassembly of section .text:
@@ -74,6 +74,10 @@ IMPLIB-EC-NEXT: Symbol: func
7474IMPLIB-EC-NEXT: Symbol: __imp_aux_func
7575IMPLIB-EC-NEXT: Symbol: #func
7676
77+ RUN: FileCheck --check-prefix=OUT-DEF %s < out.def
78+ OUT-DEF: EXPORTS
79+ OUT-DEF-NEXT: func @1
80+
7781
7882# Export using the EC .drectve section.
7983
You can’t perform that action at this time.
0 commit comments