[PATCH] D17918: [ELF] - Issue an error if trying to link object that uses splitstacks.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 10:06:37 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL263039: [ELF] - Issue an error if trying to link object that uses splitstacks. (authored by grimar).
Changed prior to commit:
http://reviews.llvm.org/D17918?vs=50154&id=50155#toc
Repository:
rL LLVM
http://reviews.llvm.org/D17918
Files:
lld/trunk/ELF/InputFiles.cpp
lld/trunk/test/ELF/splitstacks.s
Index: lld/trunk/ELF/InputFiles.cpp
===================================================================
--- lld/trunk/ELF/InputFiles.cpp
+++ lld/trunk/ELF/InputFiles.cpp
@@ -245,6 +245,9 @@
if (Name == ".note.GNU-stack")
return InputSection<ELFT>::Discarded;
+ if (Name == ".note.GNU-split-stack")
+ error("Objects using splitstacks are not supported");
+
// A MIPS object file has a special section that contains register
// usage info, which needs to be handled by the linker specially.
if (Config->EMachine == EM_MIPS && Name == ".reginfo") {
Index: lld/trunk/test/ELF/splitstacks.s
===================================================================
--- lld/trunk/test/ELF/splitstacks.s
+++ lld/trunk/test/ELF/splitstacks.s
@@ -0,0 +1,11 @@
+# REQUIRES: x86
+# 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
+
+.globl _start
+_start:
+ nop
+
+.section .note.GNU-split-stack,"", at progbits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17918.50155.patch
Type: text/x-patch
Size: 1042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160309/f3eb9f64/attachment.bin>
More information about the llvm-commits
mailing list