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 @@ -2692,7 +2692,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
2692
2692
2693
2693
// Handle /output-def (MinGW specific).
2694
2694
if (auto *arg = args.getLastArg (OPT_output_def))
2695
- writeDefFile (ctx, arg->getValue (), ctx. symtab .exports );
2695
+ writeDefFile (ctx, arg->getValue (), mainSymtab .exports );
2696
2696
2697
2697
// Set extra alignment for .comm symbols
2698
2698
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
14
14
# A command-line export applies only to EC exports.
15
15
16
16
RUN: 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
18
18
19
19
RUN: llvm-objdump -d out-cmd.dll | FileCheck --check-prefix=DISASM-EC %s
20
20
DISASM-EC: Disassembly of section .text:
@@ -74,6 +74,10 @@ IMPLIB-EC-NEXT: Symbol: func
74
74
IMPLIB-EC-NEXT: Symbol: __imp_aux_func
75
75
IMPLIB-EC-NEXT: Symbol: #func
76
76
77
+ RUN: FileCheck --check-prefix=OUT-DEF %s < out.def
78
+ OUT-DEF: EXPORTS
79
+ OUT-DEF-NEXT: func @1
80
+
77
81
78
82
# Export using the EC .drectve section.
79
83
You can’t perform that action at this time.
0 commit comments