SOURCES: dietlibc-fflush-null.patch (NEW), dietlibc-nice.patch (NE...

arekm arekm at pld-linux.org
Tue Feb 6 22:28:32 CET 2007


Author: arekm                        Date: Tue Feb  6 21:28:32 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new/updated from gentoo

---- Files affected:
SOURCES:
   dietlibc-fflush-null.patch (NONE -> 1.1)  (NEW), dietlibc-nice.patch (NONE -> 1.1)  (NEW), dietlibc-noexecstacks.patch (NONE -> 1.1)  (NEW), dietlibc-nostrip.patch (NONE -> 1.1)  (NEW), dietlibc-stackgap-instead-of-ssp.patch (NONE -> 1.1)  (NEW), dietlibc-_syscall-no-arch.patch (NONE -> 1.1)  (NEW), dietlibc-opt.patch (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/dietlibc-fflush-null.patch
diff -u /dev/null SOURCES/dietlibc-fflush-null.patch:1.1
--- /dev/null	Tue Feb  6 22:28:32 2007
+++ SOURCES/dietlibc-fflush-null.patch	Tue Feb  6 22:28:27 2007
@@ -0,0 +1,12 @@
+Index: dietlibc-0.30/libstdio/fflush.c
+===================================================================
+--- dietlibc-0.30.orig/libstdio/fflush.c
++++ dietlibc-0.30/libstdio/fflush.c
+@@ -17,7 +17,6 @@ int fflush_unlocked(FILE *stream) {
+   if (stream==0) {
+     int res;
+     FILE *f;
+-    __fflush_stdin();
+     __fflush_stdout();
+     __fflush_stderr();
+     for (res=0, f=__stdio_root; f; f=f->next)

================================================================
Index: SOURCES/dietlibc-nice.patch
diff -u /dev/null SOURCES/dietlibc-nice.patch:1.1
--- /dev/null	Tue Feb  6 22:28:32 2007
+++ SOURCES/dietlibc-nice.patch	Tue Feb  6 22:28:27 2007
@@ -0,0 +1,20 @@
+Index: dietlibc-0.29/lib/__nice.c
+===================================================================
+--- dietlibc-0.29.orig/lib/__nice.c
++++ dietlibc-0.29/lib/__nice.c
+@@ -1,9 +1,14 @@
+ #include "syscalls.h"
+ #include <sys/time.h>
+ #include <sys/resource.h>
++#include <errno.h>
+ 
+ #ifndef __NR_nice
+ int nice(int i) {
+-  return setpriority(PRIO_PROCESS,0,getpriority(PRIO_PROCESS,0)+i);
++    if (setpriority(PRIO_PROCESS,0,getpriority(PRIO_PROCESS,0)+i) == -1) {
++	errno=EPERM;
++	return -1;
++    }
++    return getpriority(PRIO_PROCESS,0);
+ }
+ #endif

================================================================
Index: SOURCES/dietlibc-noexecstacks.patch
diff -u /dev/null SOURCES/dietlibc-noexecstacks.patch:1.1
--- /dev/null	Tue Feb  6 22:28:32 2007
+++ SOURCES/dietlibc-noexecstacks.patch	Tue Feb  6 22:28:27 2007
@@ -0,0 +1,6852 @@
+diff -NurpP dietlibc-0.30/alpha/accept.S dietlibc-0.30-execstack/alpha/accept.S
+--- dietlibc-0.30/alpha/accept.S	2001-01-30 15:46:52.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/accept.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall_weak(accept,accept,__libc_accept)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/bind.S dietlibc-0.30-execstack/alpha/bind.S
+--- dietlibc-0.30/alpha/bind.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/bind.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(bind,bind)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/clone.S dietlibc-0.30-execstack/alpha/clone.S
+--- dietlibc-0.30/alpha/clone.S	2001-06-16 22:51:43.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/clone.S	2006-09-07 12:24:13.095172250 +0200
+@@ -40,3 +40,7 @@ __clone:
+ 	mov	$0,  $16
+ 	jsr	$26, exit
+ 
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/connect.S dietlibc-0.30-execstack/alpha/connect.S
+--- dietlibc-0.30/alpha/connect.S	2001-01-30 15:46:52.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/connect.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall_weak(connect,connect,__libc_connect)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/divl.S dietlibc-0.30-execstack/alpha/divl.S
+--- dietlibc-0.30/alpha/divl.S	2001-03-08 15:58:41.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/divl.S	2006-09-07 12:24:13.095172250 +0200
+@@ -99,3 +99,7 @@ __divl :
+ 	ret	$31 , ($23  ), 1
+ 
+ 	.end	__divl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/divq.S dietlibc-0.30-execstack/alpha/divq.S
+--- dietlibc-0.30/alpha/divq.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/divq.S	2006-09-07 12:24:13.091172000 +0200
+@@ -100,3 +100,7 @@ __divq :
+ 
+         .end    __divq
+ 
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/errlist.S dietlibc-0.30-execstack/alpha/errlist.S
+--- dietlibc-0.30/alpha/errlist.S	2005-05-15 01:35:39.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/errlist.S	2006-09-07 12:24:13.091172000 +0200
+@@ -296,3 +296,7 @@ sys_nerr:
+ .LC134: .string "Key has been revoked"
+ .LC135: .string "Key was rejected by service"
+ 
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getegid.S dietlibc-0.30-execstack/alpha/getegid.S
+--- dietlibc-0.30/alpha/getegid.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getegid.S	2006-09-07 12:24:13.099172500 +0200
+@@ -9,3 +9,7 @@ getegid:
+ 	lda	$sp, 8($sp)
+ 	cmovge	$0, $20, $0
+ 	ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/geteuid.S dietlibc-0.30-execstack/alpha/geteuid.S
+--- dietlibc-0.30/alpha/geteuid.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/geteuid.S	2006-09-07 12:24:13.095172250 +0200
+@@ -9,3 +9,7 @@ geteuid:
+ 	lda	$sp, 8($sp)
+ 	cmovge	$0, $20, $0
+ 	ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getgid.S dietlibc-0.30-execstack/alpha/getgid.S
+--- dietlibc-0.30/alpha/getgid.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getgid.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(getxgid,getgid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getpeername.S dietlibc-0.30-execstack/alpha/getpeername.S
+--- dietlibc-0.30/alpha/getpeername.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getpeername.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(getpeername,getpeername)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getpid.S dietlibc-0.30-execstack/alpha/getpid.S
+--- dietlibc-0.30/alpha/getpid.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getpid.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(getxpid,getpid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getppid.S dietlibc-0.30-execstack/alpha/getppid.S
+--- dietlibc-0.30/alpha/getppid.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getppid.S	2006-09-07 12:24:13.095172250 +0200
+@@ -9,3 +9,7 @@ getppid:
+ 	lda	$sp, 8($sp)
+ 	cmovge	$0, $20, $0
+ 	ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getsockname.S dietlibc-0.30-execstack/alpha/getsockname.S
+--- dietlibc-0.30/alpha/getsockname.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getsockname.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(getsockname,getsockname)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getsockopt.S dietlibc-0.30-execstack/alpha/getsockopt.S
+--- dietlibc-0.30/alpha/getsockopt.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getsockopt.S	2006-09-07 12:24:13.099172500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(getsockopt,getsockopt)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/getuid.S dietlibc-0.30-execstack/alpha/getuid.S
+--- dietlibc-0.30/alpha/getuid.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/getuid.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(getxuid,getuid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/listen.S dietlibc-0.30-execstack/alpha/listen.S
+--- dietlibc-0.30/alpha/listen.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/listen.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(listen,listen)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/__longjmp.S dietlibc-0.30-execstack/alpha/__longjmp.S
+--- dietlibc-0.30/alpha/__longjmp.S	2002-09-16 13:17:01.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/__longjmp.S	2006-09-07 12:24:13.099172500 +0200
+@@ -31,3 +31,7 @@ __longjmp:
+ 	cmoveq	 $0, 0x1, $0
+ 
+ 	ret	$31, ($26), 1
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/lseek64.S dietlibc-0.30-execstack/alpha/lseek64.S
+--- dietlibc-0.30/alpha/lseek64.S	2001-11-12 15:47:01.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/lseek64.S	2006-09-07 12:24:13.091172000 +0200
+@@ -3,3 +3,7 @@
+ .global lseek64
+ lseek64:
+ 	br	lseek
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/msgctl.S dietlibc-0.30-execstack/alpha/msgctl.S
+--- dietlibc-0.30/alpha/msgctl.S	2001-05-10 13:33:07.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/msgctl.S	2006-09-07 12:24:13.099172500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(msgctl,msgctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/msgget.S dietlibc-0.30-execstack/alpha/msgget.S
+--- dietlibc-0.30/alpha/msgget.S	2001-05-10 13:33:07.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/msgget.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(msgget,msgget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/msgrcv.S dietlibc-0.30-execstack/alpha/msgrcv.S
+--- dietlibc-0.30/alpha/msgrcv.S	2001-05-10 13:33:07.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/msgrcv.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(msgrcv,msgrcv)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/msgsnd.S dietlibc-0.30-execstack/alpha/msgsnd.S
+--- dietlibc-0.30/alpha/msgsnd.S	2001-05-10 13:33:07.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/msgsnd.S	2006-09-07 12:24:13.099172500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(msgsnd,msgsnd)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/n_sigprocmask.S dietlibc-0.30-execstack/alpha/n_sigprocmask.S
+--- dietlibc-0.30/alpha/n_sigprocmask.S	2001-07-23 21:36:33.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/n_sigprocmask.S	2006-09-07 12:24:13.099172500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall_weak(osf_sigprocmask,__old_sigprocmask,__n_sigprocmask)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/pipe.S dietlibc-0.30-execstack/alpha/pipe.S
+--- dietlibc-0.30/alpha/pipe.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/pipe.S	2006-09-07 12:24:13.095172250 +0200
+@@ -15,3 +15,7 @@ pipe:
+ .Lerror:
+         br      error_unified_syscall
+ 
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/recvfrom.S dietlibc-0.30-execstack/alpha/recvfrom.S
+--- dietlibc-0.30/alpha/recvfrom.S	2001-01-30 15:46:52.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/recvfrom.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall_weak(recvfrom,recvfrom,__libc_recvfrom)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/recvmsg.S dietlibc-0.30-execstack/alpha/recvmsg.S
+--- dietlibc-0.30/alpha/recvmsg.S	2001-05-06 02:07:29.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/recvmsg.S	2006-09-07 12:24:13.099172500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(recvmsg,recvmsg)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/recv.S dietlibc-0.30-execstack/alpha/recv.S
+--- dietlibc-0.30/alpha/recv.S	2001-01-30 15:46:52.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/recv.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall_weak(recv,recv,__libc_recv)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/reml.S dietlibc-0.30-execstack/alpha/reml.S
+--- dietlibc-0.30/alpha/reml.S	2001-03-08 15:58:41.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/reml.S	2006-09-07 12:24:13.095172250 +0200
+@@ -99,3 +99,7 @@ __reml :
+ 	ret	$31 , ($23  ), 1
+ 
+ 	.end	__reml
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/remq.S dietlibc-0.30-execstack/alpha/remq.S
+--- dietlibc-0.30/alpha/remq.S	2001-03-08 15:58:41.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/remq.S	2006-09-07 12:24:13.091172000 +0200
+@@ -95,3 +95,7 @@ __remq :
+ 	ret	$31 , ($23  ), 1
+ 
+ 	.end	__remq
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/semctl.S dietlibc-0.30-execstack/alpha/semctl.S
+--- dietlibc-0.30/alpha/semctl.S	2001-03-04 20:36:45.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/semctl.S	2006-09-07 12:24:13.099172500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(semctl,semctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/semget.S dietlibc-0.30-execstack/alpha/semget.S
+--- dietlibc-0.30/alpha/semget.S	2001-03-04 20:36:45.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/semget.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(semget,semget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/semop.S dietlibc-0.30-execstack/alpha/semop.S
+--- dietlibc-0.30/alpha/semop.S	2001-03-04 20:36:45.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/semop.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(semop,semop)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/sendmsg.S dietlibc-0.30-execstack/alpha/sendmsg.S
+--- dietlibc-0.30/alpha/sendmsg.S	2001-05-06 02:07:29.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/sendmsg.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(sendmsg,sendmsg)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/send.S dietlibc-0.30-execstack/alpha/send.S
+--- dietlibc-0.30/alpha/send.S	2001-01-30 15:46:52.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/send.S	2006-09-07 12:24:13.099172500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall_weak(send,send,__libc_send)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/sendto.S dietlibc-0.30-execstack/alpha/sendto.S
+--- dietlibc-0.30/alpha/sendto.S	2001-01-30 15:46:52.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/sendto.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall_weak(sendto,sendto,__libc_sendto)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/setjmp.S dietlibc-0.30-execstack/alpha/setjmp.S
+--- dietlibc-0.30/alpha/setjmp.S	2002-09-16 13:17:01.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/setjmp.S	2006-09-07 12:24:13.099172500 +0200
+@@ -33,3 +33,7 @@ __sigsetjmp:
+ 
+ 	br	$31, __sigjmp_save	/* jmp  __sigjmp_save */
+ 
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/setsockopt.S dietlibc-0.30-execstack/alpha/setsockopt.S
+--- dietlibc-0.30/alpha/setsockopt.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/setsockopt.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(setsockopt,setsockopt)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/shmat.S dietlibc-0.30-execstack/alpha/shmat.S
+--- dietlibc-0.30/alpha/shmat.S	2001-03-04 20:36:45.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/shmat.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(shmat,shmat)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/shmctl.S dietlibc-0.30-execstack/alpha/shmctl.S
+--- dietlibc-0.30/alpha/shmctl.S	2001-03-04 20:36:45.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/shmctl.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(shmctl,shmctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/shmdt.S dietlibc-0.30-execstack/alpha/shmdt.S
+--- dietlibc-0.30/alpha/shmdt.S	2001-03-04 20:36:45.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/shmdt.S	2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(shmdt,shmdt)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/shmget.S dietlibc-0.30-execstack/alpha/shmget.S
+--- dietlibc-0.30/alpha/shmget.S	2001-03-04 20:36:45.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/shmget.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(shmget,shmget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/shutdown.S dietlibc-0.30-execstack/alpha/shutdown.S
+--- dietlibc-0.30/alpha/shutdown.S	2001-03-12 04:16:26.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/shutdown.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(shutdown,shutdown)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/socketcall.S dietlibc-0.30-execstack/alpha/socketcall.S
+--- dietlibc-0.30/alpha/socketcall.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/socketcall.S	2006-09-07 12:24:13.091172000 +0200
+@@ -3,3 +3,7 @@
+ /*
+  * Doesn't exist on alpha ( accept, bind, ... are SYSCALLS !?! )
+  */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/socketpair.S dietlibc-0.30-execstack/alpha/socketpair.S
+--- dietlibc-0.30/alpha/socketpair.S	2001-05-11 17:52:09.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/socketpair.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(socketpair,socketpair)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/socket.S dietlibc-0.30-execstack/alpha/socket.S
+--- dietlibc-0.30/alpha/socket.S	2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/socket.S	2006-09-07 12:24:13.095172250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+ 
+ syscall(socket,socket)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/start.S dietlibc-0.30-execstack/alpha/start.S
+--- dietlibc-0.30/alpha/start.S	2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/start.S	2006-09-07 12:24:13.091172000 +0200
+@@ -33,3 +33,7 @@ _start:
+ #endif
+ 	mov	 $0, $16
+ 	jsr	$26, exit	/* YES, CALL! for threads and atexit ! (+4 byte) */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/__testandset.S dietlibc-0.30-execstack/alpha/__testandset.S
+--- dietlibc-0.30/alpha/__testandset.S	2003-02-19 21:16:01.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/__testandset.S	2006-09-07 12:24:13.091172000 +0200
+@@ -9,3 +9,7 @@ __testandset:
+ 	stq_c	$0, 0($16)		/* write lock is locked :) */
+ 	beq	$0, 1b			/* oops someone changed MY lock */
+ 1:	ret	$31, ($26), 0x01	/* return */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/time.S dietlibc-0.30-execstack/alpha/time.S
+--- dietlibc-0.30/alpha/time.S	2001-04-09 17:39:23.000000000 +0200
++++ dietlibc-0.30-execstack/alpha/time.S	2006-09-07 12:24:13.099172500 +0200
+@@ -0,0 +1,4 @@
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/unified.S dietlibc-0.30-execstack/alpha/unified.S
+--- dietlibc-0.30/alpha/unified.S	2002-01-21 16:55:18.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/unified.S	2006-09-07 12:24:13.091172000 +0200
+@@ -37,3 +37,7 @@ error_unified_syscall:
+ 	stl	$0,  0($1)
+ #endif
+ 	ret	$31, ($26), 0x01  /* return */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/dietlibc-opt.patch?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list