File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,8 @@ void LinkerDriver::parseDirectives(InputFile *file) {
438
438
case OPT_throwingnew:
439
439
break ;
440
440
default :
441
- error (arg->getSpelling () + " is not allowed in .drectve" );
441
+ error (arg->getSpelling () + " is not allowed in .drectve (" +
442
+ toString (file) + " )" );
442
443
}
443
444
}
444
445
}
Original file line number Diff line number Diff line change
1
+ # REQUIRES: x86
2
+
3
+ # RUN: llvm-mc -triple=x86_64-windows %s -filetype=obj -o %t.obj
4
+
5
+ # RUN: not lld-link -dll -out:%t.dll -entry:entry %t.obj -subsystem:console 2>&1 | FileCheck %s
6
+
7
+ # CHECK: warning: ignoring unknown argument: -unknowndirectivename
8
+ # CHECK: error: -unknowndirectivename is not allowed in .drectve ({{.*}}.obj)
9
+
10
+ .global entry
11
+ .text
12
+ entry:
13
+ ret
14
+ .section .drectve
15
+ .ascii " -unknowndirectivename "
You can’t perform that action at this time.
0 commit comments