Add section .note.GNU-stack for assembly files used by 386 and amd64.

This commit is contained in:
kib 2011-01-07 16:08:40 +00:00
parent 2d97afa68c
commit a5e01acec5
72 changed files with 142 additions and 0 deletions

View File

@ -92,3 +92,5 @@ ENTRY(___longjmp)
1: movq %rcx,0(%rsp)
ret
END(___longjmp)
.section .note.GNU-stack,"",%progbits

View File

@ -42,3 +42,5 @@ END(fabs)
.data
signbit:
.quad 0x8000000000000000
.section .note.GNU-stack,"",%progbits

View File

@ -87,3 +87,5 @@ ENTRY(modf)
ret
END(modf)
.section .note.GNU-stack,"",%progbits

View File

@ -100,3 +100,5 @@ ENTRY(rfork_thread)
jmp HIDENAME(cerror)
#endif
END(rfork_thread)
.section .note.GNU-stack,"",%progbits

View File

@ -110,3 +110,5 @@ ENTRY(__longjmp)
1: movq %rcx,0(%rsp)
ret
END(__longjmp)
.section .note.GNU-stack,"",%progbits

View File

@ -111,3 +111,5 @@ ENTRY(__siglongjmp)
1: movq %rcx,0(%rsp)
ret
END(__siglongjmp)
.section .note.GNU-stack,"",%progbits

View File

@ -16,3 +16,5 @@ ENTRY(div)
orq %rdx,%rax
ret
END(div)
.section .note.GNU-stack,"",%progbits

View File

@ -14,3 +14,5 @@ ENTRY(ldiv)
idivq %rsi
ret
END(ldiv)
.section .note.GNU-stack,"",%progbits

View File

@ -14,3 +14,5 @@ ENTRY(lldiv)
idivq %rsi
ret
END(lldiv)
.section .note.GNU-stack,"",%progbits

View File

@ -23,3 +23,5 @@ L1:
movsbl %al,%eax
ret
END(bcmp)
.section .note.GNU-stack,"",%progbits

View File

@ -95,3 +95,5 @@ END(memmove)
END(bcopy)
#endif
#endif
.section .note.GNU-stack,"",%progbits

View File

@ -42,3 +42,5 @@ L1: movq %rsi,%rcx /* zero remainder by bytes */
ret
END(bzero)
.section .note.GNU-stack,"",%progbits

View File

@ -40,3 +40,5 @@ L6: xorl %eax,%eax /* Perform unsigned comparison */
subl %edx,%eax
ret
END(memcmp)
.section .note.GNU-stack,"",%progbits

View File

@ -3,3 +3,5 @@
#define MEMMOVE
#include "bcopy.S"
.section .note.GNU-stack,"",%progbist

View File

@ -59,3 +59,5 @@ L1: rep
ret
END(memset)
.section .note.GNU-stack,"",%progbits

View File

@ -164,3 +164,5 @@ ENTRY(strcat)
.Ldone:
ret
END(strcat)
.section .note.GNU-stack,"",%progbits

View File

@ -72,3 +72,5 @@ ENTRY(strcmp)
subq %rdx,%rax
ret
END(strcmp)
.section .note.GNU-stack,"",%progbits

View File

@ -110,3 +110,5 @@ ENTRY(strcpy)
.Ldone:
ret
END(strcpy)
.section .note.GNU-stack,"",%progbits

View File

@ -83,3 +83,5 @@ err:
jmp HIDENAME(cerror)
#endif
END(brk)
.section .note.GNU-stack,"",%progbits

View File

@ -56,3 +56,4 @@ HIDENAME(cerror):
movq $-1,%rdx
ret
.section .note.GNU-stack,"",%progbits

View File

@ -54,3 +54,5 @@ ENTRY(exect)
jmp HIDENAME(cerror)
#endif
END(exect)
.section .note.GNU-stack,"",%progbits

View File

@ -53,3 +53,5 @@ ENTRY(__sys_getcontext)
jmp HIDENAME(cerror)
#endif
END(__sys_getcontext)
.section .note.GNU-stack,"",%progbits

View File

@ -58,3 +58,5 @@ ENTRY(__sys_pipe)
jmp HIDENAME(cerror)
#endif
END(__sys_pipe)
.section .note.GNU-stack,"",%progbits

View File

@ -58,3 +58,5 @@ err:
jmp HIDENAME(cerror)
#endif
END(ptrace)
.section .note.GNU-stack,"",%progbits

View File

@ -55,3 +55,5 @@ ENTRY(__sys_reboot)
jmp HIDENAME(cerror)
#endif
END(__sys_reboot)
.section .note.GNU-stack,"",%progbits

View File

@ -86,3 +86,5 @@ err:
jmp HIDENAME(cerror)
#endif
END(sbrk)
.section .note.GNU-stack,"",%progbits

View File

@ -63,3 +63,5 @@ ENTRY(__sys_setlogin)
jmp HIDENAME(cerror)
#endif
END(__sys_setlogin)
.section .note.GNU-stack,"",%progbits

View File

@ -44,3 +44,5 @@ __FBSDID("$FreeBSD$");
*/
RSYSCALL(sigreturn)
.section .note.GNU-stack,"",%progbits

View File

@ -57,3 +57,5 @@ ENTRY(__sys_vfork)
jmp HIDENAME(cerror)
#endif
END(__sys_vfork)
.section .note.GNU-stack,"",%progbits

View File

@ -50,3 +50,5 @@ ENTRY(_ctx_start)
call PIC_PLT(abort) /* fubar */
ret
END(_ctx_start)
.section .note.GNU-stack,"",%progbits

View File

@ -78,3 +78,5 @@ ENTRY(___longjmp)
1: movl %ecx,0(%esp)
ret
END(___longjmp)
.section .note.GNU-stack,"",%progbits

View File

@ -41,3 +41,5 @@ ENTRY(fabs)
fabs
ret
END(fabs)
.section .note.GNU-stack,"",%progbits

View File

@ -83,3 +83,5 @@ ENTRY(modf)
leave
ret
END(modf)
.section .note.GNU-stack,"",%progbits

View File

@ -116,3 +116,5 @@ ENTRY(rfork_thread)
PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror))
END(rfork_thread)
.section .note.GNU-stack,"",%progbits

View File

@ -98,3 +98,5 @@ ENTRY(__longjmp)
1: movl %ecx,0(%esp)
ret
END(__longjmp)
.section .note.GNU-stack,"",%progbits

View File

@ -110,3 +110,5 @@ ENTRY(__siglongjmp)
1: movl %ecx,0(%esp)
ret
END(__siglongjmp)
.section .note.GNU-stack,"",%progbits

View File

@ -35,3 +35,5 @@ ENTRY(div)
idiv %ecx
ret
END(div)
.section .note.GNU-stack,"",%progbits

View File

@ -38,3 +38,5 @@ ENTRY(ldiv)
idiv %ecx
ret
END(ldiv)
.section .note.GNU-stack,"",%progbits

View File

@ -62,3 +62,5 @@ L1:
popl %edi
ret
END(bcmp)
.section .note.GNU-stack,"",%progbits

View File

@ -106,3 +106,5 @@ END(memmove)
END(bcopy)
#endif
#endif
.section .note.GNU-stack,"",%progbits

View File

@ -80,3 +80,5 @@ L1: rep
popl %edi
ret
END(bzero)
.section .note.GNU-stack,"",%progbits

View File

@ -52,3 +52,5 @@ ENTRY(ffs)
L1: xorl %eax,%eax /* clear result */
ret
END(ffs)
.section .note.GNU-stack,"",%progbits

View File

@ -62,3 +62,5 @@ L2:
popl %ebx
ret
END(index)
.section .note.GNU-stack,"",%progbits

View File

@ -57,3 +57,5 @@ L1: xorl %eax,%eax
popl %edi
ret
END(memchr)
.section .note.GNU-stack,"",%progbits

View File

@ -74,3 +74,5 @@ L6: movzbl -1(%edi),%eax /* Perform unsigned comparison */
popl %edi
ret
END(memcmp)
.section .note.GNU-stack,"",%progbits

View File

@ -3,3 +3,5 @@ __FBSDID("$FreeBSD$");
#define MEMCOPY
#include "bcopy.S"
.section .note.GNU-stack,"",%progbits

View File

@ -3,3 +3,5 @@ __FBSDID("$FreeBSD$");
#define MEMMOVE
#include "bcopy.S"
.section .note.GNU-stack,"",%progbits

View File

@ -88,3 +88,5 @@ L1: rep
popl %edi
ret
END(memset)
.section .note.GNU-stack,"",%progbits

View File

@ -63,3 +63,5 @@ L2:
popl %ebx
ret
END(rindex)
.section .note.GNU-stack,"",%progbits

View File

@ -99,3 +99,5 @@ L2: popl %eax /* pop destination address */
popl %edi /* restore edi */
ret
END(strcat)
.section .note.GNU-stack,"",%progbits

View File

@ -62,3 +62,5 @@ L2:
popl %ebx
ret
END(strchr)
.section .note.GNU-stack,"",%progbits

View File

@ -118,3 +118,5 @@ L3: movzbl (%eax),%eax /* unsigned comparison */
subl %edx,%eax
ret
END(strcmp)
.section .note.GNU-stack,"",%progbits

View File

@ -88,3 +88,5 @@ L1: movb (%edx),%al /* unroll loop, but not too much */
L2: popl %eax /* pop dst address */
ret
END(strcpy)
.section .note.GNU-stack,"",%progbits

View File

@ -165,3 +165,5 @@ L4: xorl %eax,%eax
popl %ebx
ret
END(strncmp)
.section .note.GNU-stack,"",%progbits

View File

@ -63,3 +63,5 @@ L2:
popl %ebx
ret
END(strrchr)
.section .note.GNU-stack,"",%progbits

View File

@ -98,3 +98,5 @@ L4: popl %edi
popl %esi
ret
END(swab)
.section .note.GNU-stack,"",%progbits

View File

@ -75,3 +75,5 @@ no: popl %ebx
xorl %eax,%eax
ret
END(wcschr)
.section .note.GNU-stack,"",%progbits

View File

@ -78,3 +78,5 @@ no0: subl (%esi),%eax
popl %edi
ret
END(wcscmp)
.section .note.GNU-stack,"",%progbits

View File

@ -67,3 +67,5 @@ found1: incl %eax
found0: popl %ebx
ret
END(wcslen)
.section .note.GNU-stack,"",%progbits

View File

@ -104,3 +104,5 @@ no: xorl %eax,%eax
popl %edi
ret
END(wmemchr)
.section .note.GNU-stack,"",%progbits

View File

@ -53,3 +53,5 @@ ENTRY(__sys_vfork)
PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror))
END(__sys_vfork)
.section .note.GNU-stack,"",%progbits

View File

@ -86,3 +86,5 @@ err:
jmp HIDENAME(cerror)
#endif
END(brk)
.section .note.GNU-stack,"",%progbits

View File

@ -63,3 +63,4 @@ HIDENAME(cerror):
movl $-1,%edx
ret
.section .note.GNU-stack,"",%progbits

View File

@ -50,3 +50,5 @@ ENTRY(exect)
PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror)) /* exect(file, argv, env); */
END(exect)
.section .note.GNU-stack,"",%progbits

View File

@ -49,3 +49,5 @@ ENTRY(__sys_getcontext)
PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror))
END(__sys_getcontext)
.section .note.GNU-stack,"",%progbits

View File

@ -45,3 +45,5 @@ SYSCALL(pipe)
movl $0,%eax
ret
END(__sys_pipe)
.section .note.GNU-stack,"",%progbits

View File

@ -56,3 +56,5 @@ err:
PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror))
END(ptrace)
.section .note.GNU-stack,"",%progbits

View File

@ -41,3 +41,5 @@ __FBSDID("$FreeBSD$");
SYSCALL(reboot)
iret
END(__sys_reboot)
.section .note.GNU-stack,"",%progbits

View File

@ -89,3 +89,5 @@ err:
jmp HIDENAME(cerror)
#endif /* PIC */
END(sbrk)
.section .note.GNU-stack,"",%progbits

View File

@ -53,3 +53,5 @@ SYSCALL(setlogin)
#endif
ret /* setlogin(name) */
END(__sys_setlogin)
.section .note.GNU-stack,"",%progbits

View File

@ -44,3 +44,5 @@ __FBSDID("$FreeBSD$");
*/
RSYSCALL(sigreturn)
.section .note.GNU-stack,"",%progbits

View File

@ -51,3 +51,5 @@ ENTRY(syscall)
PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror))
END(syscall)
.section .note.GNU-stack,"",%progbits