Mark assembler sources from libc as working with non-executable stack.

Reviewed and tested by:	nwhitehorn
This commit is contained in:
Konstantin Belousov 2011-01-14 11:33:40 +00:00
parent 8ae32158df
commit 8f861da99c
24 changed files with 44 additions and 2 deletions

View File

@ -41,3 +41,5 @@
* above branch.
*/
bl PIC_PLT(CNAME(abort)) /* abort */
.section .note.GNU-stack,"",%progbits

View File

@ -69,3 +69,5 @@ ENTRY(_longjmp)
bnelr
li %r3,1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$");
ENTRY(fabs)
fabs %f1,%f1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -89,3 +89,4 @@ ENTRY(__longjmp)
li %r3,1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -95,3 +95,5 @@ ENTRY(siglongjmp)
bnelr
li %r3,1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -71,3 +71,5 @@ ENTRY(brk)
1:
b PIC_PLT(HIDENAME(cerror))
.section .note.GNU-stack,"",%progbits

View File

@ -54,4 +54,4 @@ HIDENAME(cerror):
li %r4,-1
blr /* return to callers caller */
.section .note.GNU-stack,"",%progbits

View File

@ -37,3 +37,5 @@ ENTRY(exect)
blr
1:
b PIC_PLT(HIDENAME(cerror))
.section .note.GNU-stack,"",%progbits

View File

@ -41,3 +41,5 @@ ENTRY(pipe)
blr /* and return 0 */
1:
b PIC_PLT(HIDENAME(cerror))
.section .note.GNU-stack,"",%progbits

View File

@ -56,3 +56,5 @@ ENTRY(ptrace)
blr
1:
b PIC_PLT(HIDENAME(cerror))
.section .note.GNU-stack,"",%progbits

View File

@ -68,3 +68,5 @@ ENTRY(sbrk)
blr
2:
b PIC_PLT(HIDENAME(cerror))
.section .note.GNU-stack,"",%progbits

View File

@ -47,3 +47,5 @@ SYSCALL(setlogin)
stw %r5,CNAME(_logname_valid)@l(%r4)
#endif
blr
.section .note.GNU-stack,"",%progbits

View File

@ -45,3 +45,5 @@
*/
nop
bl PIC_PLT(CNAME(abort)) /* abort */
.section .note.GNU-stack,"",%progbits

View File

@ -114,3 +114,5 @@ ENTRY(_longjmp)
bnelr
li %r3,1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$");
ENTRY(fabs)
fabs %f1,%f1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -137,3 +137,4 @@ ENTRY(__longjmp)
li %r3,1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -142,3 +142,5 @@ ENTRY(siglongjmp)
bnelr
li %r3,1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -69,3 +69,5 @@ ENTRY(brk)
ld %r0,16(%r1)
mtlr %r0
blr
.section .note.GNU-stack,"",%progbits

View File

@ -57,4 +57,4 @@ ENTRY(HIDENAME(cerror))
li %r4,-1
blr
.section .note.GNU-stack,"",%progbits

View File

@ -45,3 +45,5 @@ ENTRY(exect)
ld %r0,16(%r1)
mtlr %r0
blr
.section .note.GNU-stack,"",%progbits

View File

@ -49,3 +49,5 @@ ENTRY(pipe)
ld %r0,16(%r1)
mtlr %r0
blr
.section .note.GNU-stack,"",%progbits

View File

@ -63,3 +63,5 @@ ENTRY(ptrace)
ld %r0,16(%r1)
mtlr %r0
blr
.section .note.GNU-stack,"",%progbits

View File

@ -64,3 +64,5 @@ ENTRY(sbrk)
ld %r0,16(%r1)
mtlr %r0
blr
.section .note.GNU-stack,"",%progbits

View File

@ -37,3 +37,5 @@ SYSCALL(setlogin)
li %r5,0
stw %r5,CNAME(_logname_valid)@toc@l(%r4)
blr
.section .note.GNU-stack,"",%progbits