diff options
| -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: |

