forked from OSchip/llvm-project
[ELF] Return error from invalid linker script parse.
llvm-svn: 192360
This commit is contained in:
parent
780c7b5751
commit
c5ed819b02
|
@ -106,8 +106,8 @@ public:
|
|||
|
||||
default:
|
||||
// Process Linker script
|
||||
_elfLinkingContext.getLinkerScriptReader().parseFile(_buffer, _files);
|
||||
return error_code::success();
|
||||
return _elfLinkingContext.getLinkerScriptReader().parseFile(_buffer,
|
||||
_files);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
GROUP(
|
|
@ -0,0 +1,5 @@
|
|||
# Check for errors from invalid linker scripts
|
||||
RUN: not lld -flavor gnu -target x86_64 %p/Inputs/invalid.ls 2> %t.err
|
||||
RUN: FileCheck %s < %t.err
|
||||
|
||||
CHECK: {{.*}}invalid.ls: Error parsing linker script
|
Loading…
Reference in New Issue