diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-02-23 07:35:30 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-02-23 07:35:30 +0000 |
| commit | b7f39b08f4f46551bcabcb2f936f6cc8f41965de (patch) | |
| tree | 3128080039f1e288b618390daaeeff7727894647 | |
| parent | c1a0ac2c4addfca9214feb5a577adffed483f521 (diff) | |
| download | bcm5719-llvm-b7f39b08f4f46551bcabcb2f936f6cc8f41965de.tar.gz bcm5719-llvm-b7f39b08f4f46551bcabcb2f936f6cc8f41965de.zip | |
Slightly improve an error message.
llvm-svn: 295942
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 3 | ||||
| -rw-r--r-- | lld/test/ELF/splitstacks.s | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 666f598bc5d..8a1afbf5495 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -435,7 +435,8 @@ elf::ObjectFile<ELFT>::createInputSection(const Elf_Shdr &Sec, // 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; } diff --git a/lld/test/ELF/splitstacks.s b/lld/test/ELF/splitstacks.s index 6506b48a251..3b7e67e5c2b 100644 --- a/lld/test/ELF/splitstacks.s +++ b/lld/test/ELF/splitstacks.s @@ -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: |

