From 4c71a477ac0bd7b19c72d7625861f1f18c15b278 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 22 Jun 2016 22:09:42 +0000 Subject: builtins: tag with noexecstack These routines do not require executable stacks. However, by default ELFish linkers may assume an executable stack on GNUish environments (and some non-GNU ones too!). The GNU extension to add a note to indicate a non-executable stack is honoured by these environments to mark the stack as non-executable (the compiler normally emits this directive on appropriate targets whenever possible). This allows normal builds from getting executable stacks due to linking to the compiler rt builtins. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@273500 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/arm/udivmodsi4.S | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/builtins/arm/udivmodsi4.S') diff --git a/lib/builtins/arm/udivmodsi4.S b/lib/builtins/arm/udivmodsi4.S index 85b84936c..1ad8ee34b 100644 --- a/lib/builtins/arm/udivmodsi4.S +++ b/lib/builtins/arm/udivmodsi4.S @@ -182,3 +182,6 @@ LOCAL_LABEL(divby0): #endif END_COMPILERRT_FUNCTION(__udivmodsi4) + +NO_EXEC_STACK_DIRECTIVE + -- cgit v1.2.3