aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/arm/string
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-09-29 16:09:58 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-09-29 16:09:58 +0000
commit96cdb0ab9d6d89d47c14f239933391a1f7d465c7 (patch)
tree6f88f0773e9f00f362b1ad72de44af830fd0278b /lib/libc/arm/string
parent3e10dd104940dc186fe48668029f6e74ef8b5f80 (diff)
downloadsrc-96cdb0ab9d6d89d47c14f239933391a1f7d465c7.tar.gz
src-96cdb0ab9d6d89d47c14f239933391a1f7d465c7.zip
Annotate arm userspace assembler sources stating their tolerance to
the non-executable stack. Reviewed by: andrew Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=288373
Diffstat (limited to 'lib/libc/arm/string')
-rw-r--r--lib/libc/arm/string/ffs.S2
-rw-r--r--lib/libc/arm/string/memcmp.S2
-rw-r--r--lib/libc/arm/string/memcpy_arm.S2
-rw-r--r--lib/libc/arm/string/memcpy_xscale.S2
-rw-r--r--lib/libc/arm/string/memmove.S2
-rw-r--r--lib/libc/arm/string/memset.S2
-rw-r--r--lib/libc/arm/string/strcmp.S2
-rw-r--r--lib/libc/arm/string/strlen.S2
-rw-r--r--lib/libc/arm/string/strncmp.S2
9 files changed, 18 insertions, 0 deletions
diff --git a/lib/libc/arm/string/ffs.S b/lib/libc/arm/string/ffs.S
index cc7f396a61dd..0ed815244755 100644
--- a/lib/libc/arm/string/ffs.S
+++ b/lib/libc/arm/string/ffs.S
@@ -84,3 +84,5 @@ ENTRY(ffs)
RET
#endif
END(ffs)
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/memcmp.S b/lib/libc/arm/string/memcmp.S
index 6fd8130f79b0..33a11b7c4c49 100644
--- a/lib/libc/arm/string/memcmp.S
+++ b/lib/libc/arm/string/memcmp.S
@@ -181,3 +181,5 @@ ENTRY(memcmp)
RET
#endif
END(memcmp)
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/memcpy_arm.S b/lib/libc/arm/string/memcpy_arm.S
index 56fb70314d11..57b0449e5099 100644
--- a/lib/libc/arm/string/memcpy_arm.S
+++ b/lib/libc/arm/string/memcpy_arm.S
@@ -334,3 +334,5 @@ ENTRY(memcpy)
sub r1, r1, #1
b .Lmemcpy_l4
END(memcpy)
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/memcpy_xscale.S b/lib/libc/arm/string/memcpy_xscale.S
index a451de46bc44..ab01544fc176 100644
--- a/lib/libc/arm/string/memcpy_xscale.S
+++ b/lib/libc/arm/string/memcpy_xscale.S
@@ -1784,3 +1784,5 @@ ENTRY(memcpy)
bx lr
#endif /* !_STANDALONE */
END(memcpy)
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/memmove.S b/lib/libc/arm/string/memmove.S
index 2cd5a5e2dbeb..8f961470076c 100644
--- a/lib/libc/arm/string/memmove.S
+++ b/lib/libc/arm/string/memmove.S
@@ -609,3 +609,5 @@ END(memmove)
#else
END(bcopy)
#endif
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/memset.S b/lib/libc/arm/string/memset.S
index 6d7690182f3a..96d2f93183c4 100644
--- a/lib/libc/arm/string/memset.S
+++ b/lib/libc/arm/string/memset.S
@@ -263,3 +263,5 @@ END(bzero)
#else
END(memset)
#endif
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/strcmp.S b/lib/libc/arm/string/strcmp.S
index d610fea1f298..1cdce8bcbab9 100644
--- a/lib/libc/arm/string/strcmp.S
+++ b/lib/libc/arm/string/strcmp.S
@@ -43,3 +43,5 @@ ENTRY(strcmp)
sub r0, r2, r3
RET
END(strcmp)
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/strlen.S b/lib/libc/arm/string/strlen.S
index c9334f9c08ce..240fa7d9e85f 100644
--- a/lib/libc/arm/string/strlen.S
+++ b/lib/libc/arm/string/strlen.S
@@ -83,3 +83,5 @@ ENTRY(strlen)
mov r0, r1
RET
END(strlen)
+
+ .section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/string/strncmp.S b/lib/libc/arm/string/strncmp.S
index a5c0320ee396..affcaa0537b2 100644
--- a/lib/libc/arm/string/strncmp.S
+++ b/lib/libc/arm/string/strncmp.S
@@ -56,3 +56,5 @@ ENTRY(strncmp)
sub r0, r2, r3
RET
END(strncmp)
+
+ .section .note.GNU-stack,"",%progbits