[ELF] Return error from invalid linker script parse.

llvm-svn: 192360
This commit is contained in:
Shankar Easwaran 2013-10-10 16:59:53 +00:00
parent 780c7b5751
commit c5ed819b02
3 changed files with 8 additions and 2 deletions

View File

@ -106,8 +106,8 @@ public:
default:
// Process Linker script
_elfLinkingContext.getLinkerScriptReader().parseFile(_buffer, _files);
return error_code::success();
return _elfLinkingContext.getLinkerScriptReader().parseFile(_buffer,
_files);
}
}

View File

@ -0,0 +1 @@
GROUP(

View File

@ -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