the non-executable stack.
Reviewed by: andrew
Sponsored by: The FreeBSD Foundation
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp4, __aeabi_memcmp)
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcmp8, __aeabi_memcmp)
+
+ .section .note.GNU-stack,"",%progbits
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy4, __aeabi_memcpy)
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memcpy8, __aeabi_memcpy)
+
+ .section .note.GNU-stack,"",%progbits
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove4, __aeabi_memmove)
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memmove8, __aeabi_memmove)
+
+ .section .note.GNU-stack,"",%progbits
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memclr4, __aeabi_memclr)
DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_memclr8, __aeabi_memclr)
+ .section .note.GNU-stack,"",%progbits
.file "crti.asm"
+ .section .note.GNU-stack,"",%progbits
+
.section ".init"
.align 2
.global _init
.file "crtn.asm"
+ .section .note.GNU-stack,"",%progbits
+
.section ".init"
;;
FUNC_END
#include "ieee754-sf.S"
#include "bpabi.S"
#endif /* __symbian__ */
+
+ .section .note.GNU-stack,"",%progbits
stmdb sp!, {fp, ip, lr, pc}
sub fp, ip, #4
+ .section .note.GNU-stack,"",%progbits
.section .fini,"ax",%progbits
ldmea fp, {fp, sp, pc}
mov pc, lr
+
+ .section .note.GNU-stack,"",%progbits
msr cpsr_c, ip
RET
END(__aeabi_cdcmpeq)
+
+ .section .note.GNU-stack,"",%progbits
msr cpsr_c, ip
RET
END(__aeabi_cfcmpeq)
+
+ .section .note.GNU-stack,"",%progbits
RET
AEABI_END(dsub)
+ .section .note.GNU-stack,"",%progbits
RET
AEABI_END(fsub)
+ .section .note.GNU-stack,"",%progbits
.word ARM_TP_ADDRESS
#endif
+ .section .note.GNU-stack,"",%progbits
bl _C_LABEL(ctx_done)
bl _C_LABEL(abort)
END(_ctx_start)
+
+ .section .note.GNU-stack,"",%progbits
b .
#endif
END(_longjmp)
+
+ .section .note.GNU-stack,"",%progbits
mov r0, sp /* r0 = base of new space */
RET
END(alloca)
+
+ .section .note.GNU-stack,"",%progbits
mov r0, r3
RET
END(__divsi3)
+
+ .section .note.GNU-stack,"",%progbits
bl PIC_SYM(_C_LABEL(abort), PLT)
1: b 1b /* Cannot get here */
END(__longjmp)
+
+ .section .note.GNU-stack,"",%progbits
beq PIC_SYM(_C_LABEL(_longjmp), PLT)
b PIC_SYM(_C_LABEL(longjmp), PLT)
END(siglongjmp)
+
+ .section .note.GNU-stack,"",%progbits
RET
#endif
END(ffs)
+
+ .section .note.GNU-stack,"",%progbits
RET
#endif
END(memcmp)
+
+ .section .note.GNU-stack,"",%progbits
sub r1, r1, #1
b .Lmemcpy_l4
END(memcpy)
+
+ .section .note.GNU-stack,"",%progbits
bx lr
#endif /* !_STANDALONE */
END(memcpy)
+
+ .section .note.GNU-stack,"",%progbits
#else
END(bcopy)
#endif
+
+ .section .note.GNU-stack,"",%progbits
#else
END(memset)
#endif
+
+ .section .note.GNU-stack,"",%progbits
sub r0, r2, r3
RET
END(strcmp)
+
+ .section .note.GNU-stack,"",%progbits
mov r0, r1
RET
END(strlen)
+
+ .section .note.GNU-stack,"",%progbits
sub r0, r2, r3
RET
END(strncmp)
+
+ .section .note.GNU-stack,"",%progbits
and r0, r0, r1 /* r0 == 0 if child, else unchanged */
mov r15, r2
END(vfork)
+
+ .section .note.GNU-stack,"",%progbits
.Lcurbrk:
.word PIC_SYM(CURBRK, GOT)
END(_brk)
+
+ .section .note.GNU-stack,"",%progbits
mvn r1, #0x00000000
ldmfd sp!, {r4, pc}
END(CERROR)
+
+ .section .note.GNU-stack,"",%progbits
mov r0, #0x00000000
RET
END(_pipe)
+
+ .section .note.GNU-stack,"",%progbits
bcs PIC_SYM(CERROR, PLT)
RET
END(ptrace)
+
+ .section .note.GNU-stack,"",%progbits
.Lcurbrk:
.word PIC_SYM(CURBRK, GOT)
END(_sbrk)
+
+ .section .note.GNU-stack,"",%progbits
#include "SYS.h"
RSYSCALL(shmat)
+
+ .section .note.GNU-stack,"",%progbits
*/
RSYSCALL(sigreturn)
+
+ .section .note.GNU-stack,"",%progbits
#include "SYS.h"
RSYSCALL(syscall)
+
+ .section .note.GNU-stack,"",%progbits
CLEANFILES+= ${SASM} ${SPSEUDO}
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \
- ${MACHINE_CPUARCH} == "powerpc"
+ ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_ARCH:Marmv6*}
NOTE_GNU_STACK='\t.section .note.GNU-stack,"",%%progbits\n'
.else
NOTE_GNU_STACK=''
.endif
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \
- ${MACHINE_CPUARCH} == "powerpc"
+ ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_ARCH:Marmv6*}
AFLAGS+=--noexecstack
ACFLAGS+=-Wa,--noexecstack
.endif
ldmia sp!,{r0-r5,sl,fp,lr} /* restore the stack */
mov pc, ip /* jump to the new address */
+ .section .note.GNU-stack,"",%progbits