[lld] r295942 - Slightly improve an error message.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 23:35:31 PST 2017
Author: ruiu
Date: Thu Feb 23 01:35:30 2017
New Revision: 295942
URL: http://llvm.org/viewvc/llvm-project?rev=295942&view=rev
Log:
Slightly improve an error message.
Modified:
lld/trunk/ELF/InputFiles.cpp
lld/trunk/test/ELF/splitstacks.s
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=295942&r1=295941&r2=295942&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Thu Feb 23 01:35:30 2017
@@ -435,7 +435,8 @@ elf::ObjectFile<ELFT>::createInputSectio
// Only GNU gold supports that. We don't. For the details about that,
// see https://gcc.gnu.org/wiki/SplitStacks
if (Name == ".note.GNU-split-stack") {
- error("objects using splitstacks are not supported");
+ error(toString(this) +
+ ": object file compiled with -fsplit-stack is not supported");
return &InputSection<ELFT>::Discarded;
}
Modified: lld/trunk/test/ELF/splitstacks.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/splitstacks.s?rev=295942&r1=295941&r2=295942&view=diff
==============================================================================
--- lld/trunk/test/ELF/splitstacks.s (original)
+++ lld/trunk/test/ELF/splitstacks.s Thu Feb 23 01:35:30 2017
@@ -2,7 +2,7 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
# RUN: not ld.lld %t1.o -o %t 2>&1 | FileCheck %s
-# CHECK: objects using splitstacks are not supported
+# CHECK: .o: object file compiled with -fsplit-stack is not supported
.globl _start
_start:
More information about the llvm-commits
mailing list