summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2006-09-08 06:49:23 +0000
committerBenedikt Boehm <hollow@gentoo.org>2006-09-08 06:49:23 +0000
commit62c9eeeba4e4395b5b067ed15536e584f971dd36 (patch)
tree8262df9605efbc1d4ad57fd59cbf170ee13ddd63
parentCFLAGS patch is unecessary; fix noexecstack patch for all archs; rename + rediff (diff)
downloadmisc-62c9eeeba4e4395b5b067ed15536e584f971dd36.tar.gz
misc-62c9eeeba4e4395b5b067ed15536e584f971dd36.tar.bz2
misc-62c9eeeba4e4395b5b067ed15536e584f971dd36.zip
fix __socketcall on x86 (fixes PIE issues on hardened)
svn path=/; revision=468
-rw-r--r--dietlibc/patches/0.30-r2/000_README90
-rw-r--r--dietlibc/patches/0.30-r2/005_all_nostrip.patch87
-rw-r--r--dietlibc/patches/0.30-r2/010_all_prefix.patch11
-rw-r--r--dietlibc/patches/0.30-r2/015_all_dirent-prototype.patch15
-rw-r--r--dietlibc/patches/0.30-r2/020_all_nice.patch20
-rw-r--r--dietlibc/patches/0.30-r2/025_all_libstdio-fflush-null.patch12
-rw-r--r--dietlibc/patches/0.30-r2/030_all_stackgap-instead-of-ssp.patch28
-rw-r--r--dietlibc/patches/0.30-r2/035_all_syscall-no-arch.patch18
-rw-r--r--dietlibc/patches/0.30-r2/040_all_nostackprotector.patch13
-rw-r--r--dietlibc/patches/0.30-r2/045_all_noexecstacks.patch6852
-rw-r--r--dietlibc/patches/0.30-r2/100_x86_pic-socketcall.patch19
-rw-r--r--dietlibc/patches/0.30-r2/150_all_rename-ppc-powerpc.patch1430
-rw-r--r--dietlibc/patches/0.30-r2/155_all_rename-ppc64-powerpc64.patch1544
-rw-r--r--dietlibc/patches/0.30-r2/200_all_sparc64-is-32bit.patch14
-rw-r--r--dietlibc/patches/0.30-r2/250_all_hppa-iitlb.patch13
-rw-r--r--dietlibc/patches/0.30-r2/300_all_mips-pic.patch25
-rw-r--r--dietlibc/patches/0.30-r2/350_all_ia64-fno-omit-frame-pointer.patch13
17 files changed, 10204 insertions, 0 deletions
diff --git a/dietlibc/patches/0.30-r2/000_README b/dietlibc/patches/0.30-r2/000_README
new file mode 100644
index 0000000..ea99e36
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/000_README
@@ -0,0 +1,90 @@
+Numbering scheme
+--------------------------------------
+Platform independent patches
+000_all - 095_all
+
+x86/amd64 (i386/x86_64) dependent patches
+100_all - 145_all
+
+ppc/ppc64 dependent patches
+150_all - 195_all
+
+sparc/sparc64 dependent patches
+200_all - 245_all
+
+hppa/hppa64 dependent patches
+250_all - 295_all
+
+mips dependent patches
+300_all - 345_all
+
+ia64 dependent patches
+350_all - 395_all
+
+arm dependent patches
+400_all - 445_all
+
+Patch descriptions:
+--------------------------------------
+
+Patch: 005_all_nostrip.patch
+From: Benedikt Boehm
+Desc: Prevent stripping, portage takes care of it
+
+Patch: 010_all_prefix.patch
+From: Achim Gottinger (initial ebuild) and Christian Heim
+Desc: Set our own PREFIX for dietlibc (/usr/diet)
+
+Patch: 015_all_dirent-prototype.patch
+From: Mike Frysinger
+Desc: Fix the seekdir and telldir prototypes (using wrong types)
+
+Patch: 020_all_nice.patch
+From: Colin Hill
+Desc: Make nice(2) SUSv3 compliantly on x86_64 and other platforms
+
+Patch: 025_all_libstdio-fflush-null.patch
+From: Debian
+Desc: Don't skip flushing streams with flags&BUFINPUT
+
+Patch: 030_all_stackgap-instead-of-ssp.patch
+From: Benedikt Boehm
+Desc: Disable (non-working) SSP support; enable old stackgap code
+
+Patch: 035_all_syscall-no-arch.patch
+From: Enrico Scholz
+Desc: catch the case when syscall(2) is not implemented for the actual arch
+ instead of jumping to the next function and executing the wrong code
+
+Patch: 040_all_nostackprotector.patch
+From: Enrico Scholz
+Desc: remove '-fstack-protector' from CLI because it uses __stack_chk_fail
+ which is not provided by dietlibc
+
+Patch: 045_all_noexecstacks.patch
+From: Benedikt Boehm
+Desc: Add GNU stack section to pure assembly objects (fixes executable stack warnings)
+
+Patch: 150_all_rename-ppc-powerpc.patch
+From: Benedikt Boehm
+Desc: Comply with new kernel naming and use powerpc instead of ppc
+
+Patch: 155_all_rename-ppc64-powerpc64.patch
+From: Benedikt Boehm
+Desc: Comply with new kernel naming and use powerpc64 instead of ppc64
+
+Patch: 200_all_sparc64-is-32bit.patch
+From: Jason Wever
+Desc: Build 32-bit dietlibc on sparc64
+
+Patch: 250_all_hppa-iitlb.patch
+From: Debian
+Desc: Fix hppa assembly instructions
+
+Patch: 300_all_mips-pic.patch
+From: Debian
+Desc: Avoid -fno-pic on mips
+
+Patch: 350_all_ia64-fno-omit-frame-pointer.patch
+From: Debian
+Desc: Omit -fno-omit-frame-pointer on ia64 to workaround some compiletime issues
diff --git a/dietlibc/patches/0.30-r2/005_all_nostrip.patch b/dietlibc/patches/0.30-r2/005_all_nostrip.patch
new file mode 100644
index 0000000..ade0fe3
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/005_all_nostrip.patch
@@ -0,0 +1,87 @@
+Index: dietlibc-0.30/Makefile
+===================================================================
+--- dietlibc-0.30.orig/Makefile
++++ dietlibc-0.30/Makefile
+@@ -161,7 +161,6 @@ $(OBJDIR)/%.o: %.S $(ARCH)/syscalls.h
+
+ $(OBJDIR)/%.o: %.c
+ tcc -I. -Iinclude -c $< -o $@
+- $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
+ else
+ $(OBJDIR)/pstart.o: start.S
+ $(CROSS)$(CC) $(INC) $(CFLAGS) -DPROFILING -c $< -o $@
+@@ -171,11 +170,9 @@ $(OBJDIR)/%.o: %.S $(ARCH)/syscalls.h
+
+ $(OBJDIR)/pthread_%.o: libpthread/pthread_%.c
+ $(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@
+- $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
+
+ $(OBJDIR)/%.o: %.c
+ $(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@ -D__dietlibc__
+- $(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
+ endif
+
+ ifeq ($(shell $(CC) -v 2>&1 | grep "gcc version"),gcc version 4.0.0)
+@@ -246,18 +243,15 @@ $(PICODIR)/%.o: %.S $(ARCH)/syscalls.h
+
+ $(PICODIR)/pthread_%.o: libpthread/pthread_%.c
+ $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
+- $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
+
+ $(PICODIR)/%.o: %.c
+ $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
+- $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
+
+ $(PICODIR)/dstart.o: start.S
+ $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -c $< -o $@
+
+ $(PICODIR)/dyn_so_start.o: dyn_start.c
+ $(CROSS)$(CC) $(INC) $(CFLAGS) -fPIC -D__DYN_LIB -D__DYN_LIB_SHARED -c $< -o $@
+- $(COMMENT) $(CROSS)strip -x -R .comment -R .note $@
+
+ DYN_LIBC_PIC = $(LIBOBJ) $(LIBSTDIOOBJ) $(LIBUGLYOBJ) \
+ $(LIBCRUFTOBJ) $(LIBCRYPTOBJ) $(LIBSHELLOBJ) $(LIBREGEXOBJ)
+@@ -306,19 +300,15 @@ CURNAME=$(notdir $(shell pwd))
+
+ $(OBJDIR)/diet: $(OBJDIR)/start.o $(OBJDIR)/dyn_start.o diet.c $(OBJDIR)/dietlibc.a $(OBJDIR)/dyn_stop.o
+ $(CROSS)$(CC) -isystem include $(CFLAGS) -nostdlib -o $@ $^ -DDIETHOME=\"$(HOME)\" -DVERSION=\"$(VERSION)\" -lgcc
+- $(CROSS)strip -R .comment -R .note $@
+
+ $(OBJDIR)/diet-i: $(OBJDIR)/start.o $(OBJDIR)/dyn_start.o diet.c $(OBJDIR)/dietlibc.a $(OBJDIR)/dyn_stop.o
+ $(CROSS)$(CC) -isystem include $(CFLAGS) -nostdlib -o $@ $^ -DDIETHOME=\"$(prefix)\" -DVERSION=\"$(VERSION)\" -DINSTALLVERSION -lgcc
+- $(CROSS)strip -R .comment -R .note $@
+
+ $(PICODIR)/diet-dyn: $(PICODIR)/start.o $(PICODIR)/dyn_start.o diet.c
+ $(LD_UNSET) $(CROSS)$(CC) -isystem include $(CFLAGS) -fPIC -nostdlib -o $@ $^ -DDIETHOME=\"$(HOME)\" -D__DYN_LIB -DVERSION=\"$(VERSION)\" -L$(PICODIR) -lc -lgcc $(PICODIR)/dyn_stop.o -Wl,-dynamic-linker=$(HOME)/$(PICODIR)/libdl.so
+- $(CROSS)strip -R .command -R .note $@
+
+ $(PICODIR)/diet-dyn-i: $(PICODIR)/start.o $(PICODIR)/dyn_start.o diet.c
+ $(LD_UNSET) $(CROSS)$(CC) -isystem include $(CFLAGS) -fPIC -nostdlib -o $@ $^ -DDIETHOME=\"$(prefix)\" -D__DYN_LIB -DVERSION=\"$(VERSION)\" -L$(PICODIR) -lc -lgcc $(PICODIR)/dyn_stop.o -Wl,-dynamic-linker=$(ILIBDIR)/libdl.so -DINSTALLVERSION
+- $(CROSS)strip -R .command -R .note $@
+
+ $(OBJDIR)/djb: $(OBJDIR)/compile $(OBJDIR)/load
+
+Index: dietlibc-0.30/dynlinker/Makefile
+===================================================================
+--- dietlibc-0.30.orig/dynlinker/Makefile
++++ dietlibc-0.30/dynlinker/Makefile
+@@ -15,7 +15,6 @@ $(DYNLINK): ldso_start.S ldso_test.c $(D
+ $(CROSS)$(CC) -I.. -I../include $(CFLAGS) -c ldso_test.c
+ $(CROSS)$(CC) -I.. -I../include $(CFLAGS) -c ldso_start.S
+ $(CROSS)$(CC) -nostdlib $(LDFLAGS) -o $@ ldso_start.o ldso_test.o $(DLIBS) -lgcc $(LINKOPS)
+- $(CROSS)strip -R .comment -R .note $@
+
+ install: $(DYNLINK)
+ cp $(DYNLINK) /lib
+Index: dietlibc-0.30/libpthread/Makefile
+===================================================================
+--- dietlibc-0.30.orig/libpthread/Makefile
++++ dietlibc-0.30/libpthread/Makefile
+@@ -45,7 +45,6 @@ PWD=$(shell pwd)
+
+ %.o: %.c
+ $(CROSS)$(CC) -I. -Iinclude $(CFLAGS) -c $<
+-# $(CROSS)strip -x -R .comment -R .note $@
+
+ libpthread.a: $(PTHREAD_OBJS)
+ $(CROSS)ar cr $@ $^
diff --git a/dietlibc/patches/0.30-r2/010_all_prefix.patch b/dietlibc/patches/0.30-r2/010_all_prefix.patch
new file mode 100644
index 0000000..e2d9cbe
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/010_all_prefix.patch
@@ -0,0 +1,11 @@
+Index: dietlibc-0.30/Makefile
+===================================================================
+--- dietlibc-0.30.orig/Makefile
++++ dietlibc-0.30/Makefile
+@@ -1,5 +1,5 @@
+ INSTALL=install
+-prefix?=/opt/diet
++prefix=/usr/diet
+ # Set the following to install to a different root
+ #DESTDIR=/tmp/fefix
+ # Use "make DEBUG=1" to compile a debug version.
diff --git a/dietlibc/patches/0.30-r2/015_all_dirent-prototype.patch b/dietlibc/patches/0.30-r2/015_all_dirent-prototype.patch
new file mode 100644
index 0000000..2cbcca9
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/015_all_dirent-prototype.patch
@@ -0,0 +1,15 @@
+Index: dietlibc-0.30/include/dirent.h
+===================================================================
+--- dietlibc-0.30.orig/include/dirent.h
++++ dietlibc-0.30/include/dirent.h
+@@ -37,8 +37,8 @@ int closedir (DIR *__dirp) __THROW;
+ struct dirent *readdir (DIR *__dirp) __THROW;
+ struct dirent64 *readdir64 (DIR *__dirp) __THROW;
+ void rewinddir (DIR *__dirp) __THROW;
+-void seekdir (DIR *__dirp, long int __pos) __THROW;
+-long int telldir (DIR *__dirp) __THROW;
++void seekdir (DIR *__dirp, off_t __pos) __THROW;
++off_t telldir (DIR *__dirp) __THROW;
+
+ int scandir(const char *dir, struct dirent ***namelist,
+ int (*selection)(const struct dirent *),
diff --git a/dietlibc/patches/0.30-r2/020_all_nice.patch b/dietlibc/patches/0.30-r2/020_all_nice.patch
new file mode 100644
index 0000000..8cf515a
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/020_all_nice.patch
@@ -0,0 +1,20 @@
+Index: dietlibc-0.30/lib/__nice.c
+===================================================================
+--- dietlibc-0.30.orig/lib/__nice.c
++++ dietlibc-0.30/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
diff --git a/dietlibc/patches/0.30-r2/025_all_libstdio-fflush-null.patch b/dietlibc/patches/0.30-r2/025_all_libstdio-fflush-null.patch
new file mode 100644
index 0000000..f09615e
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/025_all_libstdio-fflush-null.patch
@@ -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)
diff --git a/dietlibc/patches/0.30-r2/030_all_stackgap-instead-of-ssp.patch b/dietlibc/patches/0.30-r2/030_all_stackgap-instead-of-ssp.patch
new file mode 100644
index 0000000..9508edd
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/030_all_stackgap-instead-of-ssp.patch
@@ -0,0 +1,28 @@
+Index: dietlibc-0.30/dietfeatures.h
+===================================================================
+--- dietlibc-0.30.orig/dietfeatures.h
++++ dietlibc-0.30/dietfeatures.h
+@@ -99,7 +99,7 @@
+ /* WARNING: this appears to break with some binutils versions. Works
+ * for me with binutils 2.15. The symptom is an error message that
+ * `main' can not be found. */
+-/* #define WANT_STACKGAP */
++#define WANT_STACKGAP
+
+ /* Include support for ProPolice/SSP, calls guard_setup */
+ /* ProPolice is part of gcc 4.1 and up, there were patches for earlier
+@@ -108,12 +108,12 @@
+ * WANT_SSP_URANDOM and then not using -fstack-protector enlarges a
+ * binary by 152 bytes. */
+ #if (__GNUC__>4) || ((__GNUC__==4) && (__GNUC_MINOR__>=1))
+-#define WANT_SSP
++//#define WANT_SSP
+ #endif
+ /* Choose which canary seeder you want you can choose
+ * both but it will check urandom first and use xor as
+ * a fallback. xor is lighter but weaker */
+-#define WANT_SSP_URANDOM
++//#define WANT_SSP_URANDOM
+ /* The XOR seeder is completely predictable and should not be used
+ * unless you don't have a /dev/urandom, and even then it's a bad idea. */
+ /* #define WANT_SSP_XOR */
diff --git a/dietlibc/patches/0.30-r2/035_all_syscall-no-arch.patch b/dietlibc/patches/0.30-r2/035_all_syscall-no-arch.patch
new file mode 100644
index 0000000..8abcc8e
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/035_all_syscall-no-arch.patch
@@ -0,0 +1,18 @@
+Index: dietlibc-0.30/libcompat/syscall.S
+===================================================================
+--- dietlibc-0.30.orig/libcompat/syscall.S
++++ dietlibc-0.30/libcompat/syscall.S
+@@ -130,6 +130,12 @@ syscall:
+ b __unified_syscall
+
+ #else
+- /* arch not implemented yet */
++#include <endian.h>
++ .section .note
++#if (__WORDSIZE == 64)
++ .quad __syscall_2_not_implemented_for_this_arch
++#else
++ .long __syscall_2_not_implemented_for_this_arch
++#endif
+ #endif
+ .size syscall, . - syscall
diff --git a/dietlibc/patches/0.30-r2/040_all_nostackprotector.patch b/dietlibc/patches/0.30-r2/040_all_nostackprotector.patch
new file mode 100644
index 0000000..0520412
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/040_all_nostackprotector.patch
@@ -0,0 +1,13 @@
+Index: dietlibc-0.30/diet.c
+===================================================================
+--- dietlibc-0.30.orig/diet.c
++++ dietlibc-0.30/diet.c
+@@ -321,6 +321,8 @@ pp:
+ if (strcmp(argv[i],"-fpic") && strcmp(argv[i],"-fno-pic"))
+ continue;
+ }
++ if (strcmp(argv[i],"-fstack-protector")==0)
++ continue;
+ *dest++=argv[i];
+ }
+ #ifndef __DYN_LIB
diff --git a/dietlibc/patches/0.30-r2/045_all_noexecstacks.patch b/dietlibc/patches/0.30-r2/045_all_noexecstacks.patch
new file mode 100644
index 0000000..6400fd4
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/045_all_noexecstacks.patch
@@ -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 -NurpP dietlibc-0.30/alpha/utime.S dietlibc-0.30-execstack/alpha/utime.S
+--- dietlibc-0.30/alpha/utime.S 2001-01-09 18:57:38.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/utime.S 2006-09-07 12:24:13.091172000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(utimes,utime)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/alpha/waitpid.S dietlibc-0.30-execstack/alpha/waitpid.S
+--- dietlibc-0.30/alpha/waitpid.S 2001-01-30 15:46:52.000000000 +0100
++++ dietlibc-0.30-execstack/alpha/waitpid.S 2006-09-07 12:24:13.091172000 +0200
+@@ -8,3 +8,7 @@ waitpid:
+ __libc_waitpid:
+ clr $19
+ br wait4
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/clone.S dietlibc-0.30-execstack/arm/clone.S
+--- dietlibc-0.30/arm/clone.S 2002-02-28 17:27:02.000000000 +0100
++++ dietlibc-0.30-execstack/arm/clone.S 2006-09-07 12:24:13.115173500 +0200
+@@ -32,3 +32,7 @@ __clone:
+
+ 1: b _exit @ branch to _exit (PIC safe)
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/dyn_syscalls.S dietlibc-0.30-execstack/arm/dyn_syscalls.S
+--- dietlibc-0.30/arm/dyn_syscalls.S 2005-10-08 23:22:09.000000000 +0200
++++ dietlibc-0.30-execstack/arm/dyn_syscalls.S 2006-09-07 12:24:13.115173500 +0200
+@@ -289,3 +289,7 @@ __exit:
+
+ #include "__longjmp.S"
+ #include "setjmp.S"
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/__guard.S dietlibc-0.30-execstack/arm/__guard.S
+--- dietlibc-0.30/arm/__guard.S 2006-06-21 21:55:25.000000000 +0200
++++ dietlibc-0.30-execstack/arm/__guard.S 2006-09-07 12:24:13.115173500 +0200
+@@ -7,3 +7,7 @@ __guard:
+ __stack_chk_guard:
+ .long 0xaff00
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/__longjmp.S dietlibc-0.30-execstack/arm/__longjmp.S
+--- dietlibc-0.30/arm/__longjmp.S 2001-07-02 18:06:48.000000000 +0200
++++ dietlibc-0.30-execstack/arm/__longjmp.S 2006-09-07 12:24:13.115173500 +0200
+@@ -9,3 +9,7 @@ __longjmp:
+ lfm f4, 4, [ip], #48
+ #endif
+ ldmia ip, {r4-r11, sp, pc}
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/mcount.S dietlibc-0.30-execstack/arm/mcount.S
+--- dietlibc-0.30/arm/mcount.S 2002-05-09 05:50:17.000000000 +0200
++++ dietlibc-0.30-execstack/arm/mcount.S 2006-09-07 12:24:13.115173500 +0200
+@@ -44,3 +44,7 @@ mcount:
+
+ ldmdb fp, { r0 - r3, fp, sp, pc } @ restore context from stack frame and return.
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/md5asm.S dietlibc-0.30-execstack/arm/md5asm.S
+--- dietlibc-0.30/arm/md5asm.S 2002-03-08 11:56:15.000000000 +0100
++++ dietlibc-0.30-execstack/arm/md5asm.S 2006-09-07 12:24:13.115173500 +0200
+@@ -394,3 +394,7 @@ __UnalignedMD5Transform:
+ #endif /* __BYTE_ORDER == __LITTLE_ENDIAN */
+
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/mmap.S dietlibc-0.30-execstack/arm/mmap.S
+--- dietlibc-0.30/arm/mmap.S 2002-02-18 20:57:39.000000000 +0100
++++ dietlibc-0.30-execstack/arm/mmap.S 2006-09-07 12:24:13.115173500 +0200
+@@ -22,3 +22,7 @@ mmap:
+ add sp, sp, #16
+ b __unified_syscall
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/select.S dietlibc-0.30-execstack/arm/select.S
+--- dietlibc-0.30/arm/select.S 2001-10-15 23:07:45.000000000 +0200
++++ dietlibc-0.30-execstack/arm/select.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(_newselect,select)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/setjmp.S dietlibc-0.30-execstack/arm/setjmp.S
+--- dietlibc-0.30/arm/setjmp.S 2001-07-02 18:06:48.000000000 +0200
++++ dietlibc-0.30-execstack/arm/setjmp.S 2006-09-07 12:24:13.115173500 +0200
+@@ -15,3 +15,7 @@ sigsetjmp:
+ sub r0, r0, #30
+ b __sigjmp_save
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/start.S dietlibc-0.30-execstack/arm/start.S
+--- dietlibc-0.30/arm/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/arm/start.S 2006-09-07 12:24:13.115173500 +0200
+@@ -73,3 +73,7 @@ _exit:
+
+
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/strcpy.S dietlibc-0.30-execstack/arm/strcpy.S
+--- dietlibc-0.30/arm/strcpy.S 2005-07-25 11:28:11.000000000 +0200
++++ dietlibc-0.30-execstack/arm/strcpy.S 2006-09-07 12:24:13.115173500 +0200
+@@ -64,3 +64,7 @@ strcpy:
+ mov pc, lr
+ .Lfe1:
+ .size strcpy,.Lfe1-strcpy
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/strlen.S dietlibc-0.30-execstack/arm/strlen.S
+--- dietlibc-0.30/arm/strlen.S 2005-07-25 11:28:11.000000000 +0200
++++ dietlibc-0.30-execstack/arm/strlen.S 2006-09-07 12:24:13.115173500 +0200
+@@ -70,3 +70,7 @@ strlen:
+
+ .Lstrlen:
+ .size strlen,.Lstrlen-strlen
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/__testandset.S dietlibc-0.30-execstack/arm/__testandset.S
+--- dietlibc-0.30/arm/__testandset.S 2001-03-09 20:30:52.000000000 +0100
++++ dietlibc-0.30-execstack/arm/__testandset.S 2006-09-07 12:24:13.115173500 +0200
+@@ -5,3 +5,7 @@ __testandset:
+ mov r1, #1
+ swp r0, r1, [r2]
+ mov pc, lr
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/unified.S dietlibc-0.30-execstack/arm/unified.S
+--- dietlibc-0.30/arm/unified.S 2002-02-28 17:13:20.000000000 +0100
++++ dietlibc-0.30-execstack/arm/unified.S 2006-09-07 12:24:13.115173500 +0200
+@@ -32,3 +32,7 @@ __unified_syscall:
+ #ifndef WANT_THREAD_SAFE
+ .L0: .long errno
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/arm/waitpid.S dietlibc-0.30-execstack/arm/waitpid.S
+--- dietlibc-0.30/arm/waitpid.S 2004-11-30 17:26:20.000000000 +0100
++++ dietlibc-0.30-execstack/arm/waitpid.S 2006-09-07 12:24:13.115173500 +0200
+@@ -9,3 +9,7 @@ __libc_waitpid:
+ mov r3, #0
+ b wait4
+ .size waitpid, .-waitpid
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/dynlinker/ldso_start.S dietlibc-0.30-execstack/dynlinker/ldso_start.S
+--- dietlibc-0.30/dynlinker/ldso_start.S 2001-07-09 21:49:52.000000000 +0200
++++ dietlibc-0.30-execstack/dynlinker/ldso_start.S 2006-09-07 12:24:13.099172500 +0200
+@@ -73,3 +73,7 @@ __environ:
+ .global fini_entry
+ fini_entry:
+ .long 0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/accept.S dietlibc-0.30-execstack/i386/accept.S
+--- dietlibc-0.30/i386/accept.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/accept.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(accept,ACCEPT)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/acosh.S dietlibc-0.30-execstack/i386/acosh.S
+--- dietlibc-0.30/i386/acosh.S 2001-08-01 00:13:35.000000000 +0200
++++ dietlibc-0.30-execstack/i386/acosh.S 2006-09-07 12:24:13.083171500 +0200
+@@ -16,3 +16,7 @@ acosh:
+
+ .Lende:
+ .size acosh,.Lende-acosh
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/acos.S dietlibc-0.30-execstack/i386/acos.S
+--- dietlibc-0.30/i386/acos.S 2002-10-04 22:39:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/acos.S 2006-09-07 12:24:13.079171250 +0200
+@@ -28,3 +28,7 @@ __acos:
+ .size acos,.ende-acos
+ .size acosf,.ende-acosf
+ .size acosl,.ende-acosl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/asinh.S dietlibc-0.30-execstack/i386/asinh.S
+--- dietlibc-0.30/i386/asinh.S 2001-08-01 00:13:35.000000000 +0200
++++ dietlibc-0.30-execstack/i386/asinh.S 2006-09-07 12:24:13.091172000 +0200
+@@ -16,3 +16,7 @@ asinh:
+
+ .Lende:
+ .size asinh,.Lende-asinh
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/asin.S dietlibc-0.30-execstack/i386/asin.S
+--- dietlibc-0.30/i386/asin.S 2002-10-04 22:39:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/asin.S 2006-09-07 12:24:13.087171750 +0200
+@@ -27,3 +27,7 @@ __asin:
+ .size asin,.ende-asin
+ .size asinf,.ende-asinf
+ .size asinl,.ende-asinl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/atan2.S dietlibc-0.30-execstack/i386/atan2.S
+--- dietlibc-0.30/i386/atan2.S 2003-03-30 21:19:52.000000000 +0200
++++ dietlibc-0.30-execstack/i386/atan2.S 2006-09-07 12:24:13.083171500 +0200
+@@ -23,3 +23,7 @@ atan2:
+ .size atan2,.ende-atan2
+ .size atan2f,.ende-atan2f
+ .size atan2l,.ende-atan2l
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/atanh.S dietlibc-0.30-execstack/i386/atanh.S
+--- dietlibc-0.30/i386/atanh.S 2001-08-01 00:13:35.000000000 +0200
++++ dietlibc-0.30-execstack/i386/atanh.S 2006-09-07 12:24:13.083171500 +0200
+@@ -17,3 +17,7 @@ atanh:
+
+ .Lende:
+ .size atanh,.Lende-atanh
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/atan.S dietlibc-0.30-execstack/i386/atan.S
+--- dietlibc-0.30/i386/atan.S 2002-10-04 22:39:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/atan.S 2006-09-07 12:24:13.079171250 +0200
+@@ -25,3 +25,7 @@ atanl:
+ .size atan,.ende-atan
+ .size atanf,.ende-atanf
+ .size atanl,.ende-atanl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/atoll.S dietlibc-0.30-execstack/i386/atoll.S
+--- dietlibc-0.30/i386/atoll.S 2001-07-26 17:20:36.000000000 +0200
++++ dietlibc-0.30-execstack/i386/atoll.S 2006-09-07 12:24:13.083171500 +0200
+@@ -62,3 +62,7 @@ atoll:
+
+ .size atoll,.Lende-atoll
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/atol.S dietlibc-0.30-execstack/i386/atol.S
+--- dietlibc-0.30/i386/atol.S 2003-06-23 16:39:13.000000000 +0200
++++ dietlibc-0.30-execstack/i386/atol.S 2006-09-07 12:24:13.091172000 +0200
+@@ -56,3 +56,7 @@ atol:
+ ret
+ .size atoi, . - atoi
+ .size atol, . - atol
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/bind.S dietlibc-0.30-execstack/i386/bind.S
+--- dietlibc-0.30/i386/bind.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/bind.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(bind,BIND)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/cbrt.S dietlibc-0.30-execstack/i386/cbrt.S
+--- dietlibc-0.30/i386/cbrt.S 2001-08-06 15:10:58.000000000 +0200
++++ dietlibc-0.30-execstack/i386/cbrt.S 2006-09-07 12:24:13.083171500 +0200
+@@ -44,3 +44,7 @@ lop:
+ zero:
+ ret
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ceil.S dietlibc-0.30-execstack/i386/ceil.S
+--- dietlibc-0.30/i386/ceil.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/ceil.S 2006-09-07 12:24:13.087171750 +0200
+@@ -53,3 +53,7 @@ __flcetr:
+ .size ceill,.Lende-ceill
+ .size ceilf,.Lende-ceilf
+ .size __flcetr,.Lende-__flcetr
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/clone.S dietlibc-0.30-execstack/i386/clone.S
+--- dietlibc-0.30/i386/clone.S 2002-08-08 18:59:07.000000000 +0200
++++ dietlibc-0.30-execstack/i386/clone.S 2006-09-07 12:24:13.083171500 +0200
+@@ -58,3 +58,7 @@ __clone:
+ orl $-1, %eax
+ .Lreturn:
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/connect.S dietlibc-0.30-execstack/i386/connect.S
+--- dietlibc-0.30/i386/connect.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/connect.S 2006-09-07 12:24:13.083171500 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(connect,CONNECT)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/copysign.S dietlibc-0.30-execstack/i386/copysign.S
+--- dietlibc-0.30/i386/copysign.S 2003-06-21 00:33:07.000000000 +0200
++++ dietlibc-0.30-execstack/i386/copysign.S 2006-09-07 12:24:13.087171750 +0200
+@@ -16,3 +16,7 @@ copysign:
+
+ .ende:
+ .size copysign,.ende-copysign
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/cosh.S dietlibc-0.30-execstack/i386/cosh.S
+--- dietlibc-0.30/i386/cosh.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/cosh.S 2006-09-07 12:24:13.087171750 +0200
+@@ -41,3 +41,7 @@ coshl:
+ .size cosh,.Lende-cosh
+ .size coshf,.Lende-coshf
+ .size coshl,.Lende-coshl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/cos.S dietlibc-0.30-execstack/i386/cos.S
+--- dietlibc-0.30/i386/cos.S 2003-01-02 15:04:42.000000000 +0100
++++ dietlibc-0.30-execstack/i386/cos.S 2006-09-07 12:24:13.083171500 +0200
+@@ -33,3 +33,7 @@ cosl:
+ .size cos,.Lende-cos
+ .size cosl,.Lende-cosl
+ .size cosf,.Lende-cosf
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/dyn_syscalls.S dietlibc-0.30-execstack/i386/dyn_syscalls.S
+--- dietlibc-0.30/i386/dyn_syscalls.S 2005-10-08 23:11:32.000000000 +0200
++++ dietlibc-0.30-execstack/i386/dyn_syscalls.S 2006-09-07 12:24:13.087171750 +0200
+@@ -388,3 +388,7 @@ __unified_syscall:
+
+ #include "__longjmp.S"
+ #include "setjmp.S"
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/exp10.S dietlibc-0.30-execstack/i386/exp10.S
+--- dietlibc-0.30/i386/exp10.S 2001-07-30 15:52:55.000000000 +0200
++++ dietlibc-0.30-execstack/i386/exp10.S 2006-09-07 12:24:13.079171250 +0200
+@@ -25,3 +25,7 @@ exp10: # note:
+
+ .size exp10,.ende-exp10
+ .size pow10,.ende-pow10
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/exp2.S dietlibc-0.30-execstack/i386/exp2.S
+--- dietlibc-0.30/i386/exp2.S 2001-07-18 02:20:09.000000000 +0200
++++ dietlibc-0.30-execstack/i386/exp2.S 2006-09-07 12:24:13.087171750 +0200
+@@ -16,3 +16,7 @@ exp2: # note:
+
+ .ende:
+ .size exp2,.ende-exp2
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/expm1.S dietlibc-0.30-execstack/i386/expm1.S
+--- dietlibc-0.30/i386/expm1.S 2001-07-19 18:07:10.000000000 +0200
++++ dietlibc-0.30-execstack/i386/expm1.S 2006-09-07 12:24:13.087171750 +0200
+@@ -21,3 +21,7 @@ expm1: # note:
+
+ .ende:
+ .size expm1,.ende-expm1
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/exp.S dietlibc-0.30-execstack/i386/exp.S
+--- dietlibc-0.30/i386/exp.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/exp.S 2006-09-07 12:24:13.087171750 +0200
+@@ -44,3 +44,7 @@ __finexp:
+ .size expl,.Lende-expl
+ .size expf,.Lende-expf
+ .size __finexp,.Lende-__finexp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/fabs.S dietlibc-0.30-execstack/i386/fabs.S
+--- dietlibc-0.30/i386/fabs.S 2003-03-30 21:19:53.000000000 +0200
++++ dietlibc-0.30-execstack/i386/fabs.S 2006-09-07 12:24:13.079171250 +0200
+@@ -21,3 +21,7 @@ fabsl:
+ .size fabs,.ende-fabs
+ .size fabsl,.ende-fabsl
+ .size fabsf,.ende-fabsf
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ffsll.S dietlibc-0.30-execstack/i386/ffsll.S
+--- dietlibc-0.30/i386/ffsll.S 2003-08-20 02:44:40.000000000 +0200
++++ dietlibc-0.30-execstack/i386/ffsll.S 2006-09-07 12:24:13.091172000 +0200
+@@ -19,3 +19,7 @@ ffsll:
+ ret
+ .Lende:
+ .size ffsll,.Lende-ffsll
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ffsl.S dietlibc-0.30-execstack/i386/ffsl.S
+--- dietlibc-0.30/i386/ffsl.S 2003-08-20 02:44:40.000000000 +0200
++++ dietlibc-0.30-execstack/i386/ffsl.S 2006-09-07 12:24:13.079171250 +0200
+@@ -0,0 +1,4 @@
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ffs.S dietlibc-0.30-execstack/i386/ffs.S
+--- dietlibc-0.30/i386/ffs.S 2003-08-20 02:44:40.000000000 +0200
++++ dietlibc-0.30-execstack/i386/ffs.S 2006-09-07 12:24:13.087171750 +0200
+@@ -15,3 +15,7 @@ ffsl:
+ .Lende:
+ .size ffsl,.Lende-ffsl
+ .size ffs,.Lende-ffs
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/floor.S dietlibc-0.30-execstack/i386/floor.S
+--- dietlibc-0.30/i386/floor.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/floor.S 2006-09-07 12:24:13.087171750 +0200
+@@ -44,3 +44,7 @@ floorl:
+ .size floor,.Lende-floor
+ .size floorl,.Lende-floorl
+ .size floorf,.Lende-floorf
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/fmod.S dietlibc-0.30-execstack/i386/fmod.S
+--- dietlibc-0.30/i386/fmod.S 2003-09-22 19:48:56.000000000 +0200
++++ dietlibc-0.30-execstack/i386/fmod.S 2006-09-07 12:24:13.083171500 +0200
+@@ -36,3 +36,7 @@ fmodl:
+ .size fmod,.ende-fmod
+ .size fmodl,.ende-fmodl
+ .size fmodf,.ende-fmodf
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/getenv.S dietlibc-0.30-execstack/i386/getenv.S
+--- dietlibc-0.30/i386/getenv.S 2005-09-21 09:33:08.000000000 +0200
++++ dietlibc-0.30-execstack/i386/getenv.S 2006-09-07 12:24:13.083171500 +0200
+@@ -46,3 +46,7 @@ getenv:
+ popl %esi
+ ret
+ .size getenv, . - getenv
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/getpeername.S dietlibc-0.30-execstack/i386/getpeername.S
+--- dietlibc-0.30/i386/getpeername.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/getpeername.S 2006-09-07 12:24:13.083171500 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(getpeername,GETPEERNAME)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/getsockname.S dietlibc-0.30-execstack/i386/getsockname.S
+--- dietlibc-0.30/i386/getsockname.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/getsockname.S 2006-09-07 12:24:13.079171250 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(getsockname,GETSOCKNAME)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/getsockopt.S dietlibc-0.30-execstack/i386/getsockopt.S
+--- dietlibc-0.30/i386/getsockopt.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/getsockopt.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(getsockopt,GETSOCKOPT)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/__half.S dietlibc-0.30-execstack/i386/__half.S
+--- dietlibc-0.30/i386/__half.S 2001-07-27 16:39:18.000000000 +0200
++++ dietlibc-0.30-execstack/i386/__half.S 2006-09-07 12:24:13.083171500 +0200
+@@ -8,3 +8,7 @@
+ .type __half,@object
+ .size __half,4
+ __half: .long 0x3f000000
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/htonl.S dietlibc-0.30-execstack/i386/htonl.S
+--- dietlibc-0.30/i386/htonl.S 2001-08-01 00:13:35.000000000 +0200
++++ dietlibc-0.30-execstack/i386/htonl.S 2006-09-07 12:24:13.087171750 +0200
+@@ -11,3 +11,7 @@ ntohl:
+ rorl $16,%eax
+ xchgb %al,%ah
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/htons.S dietlibc-0.30-execstack/i386/htons.S
+--- dietlibc-0.30/i386/htons.S 2001-08-01 00:13:35.000000000 +0200
++++ dietlibc-0.30-execstack/i386/htons.S 2006-09-07 12:24:13.083171500 +0200
+@@ -9,3 +9,7 @@ ntohs:
+ movzwl 4(%esp),%eax
+ xchgb %al,%ah
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/hypot.S dietlibc-0.30-execstack/i386/hypot.S
+--- dietlibc-0.30/i386/hypot.S 2003-03-30 21:19:53.000000000 +0200
++++ dietlibc-0.30-execstack/i386/hypot.S 2006-09-07 12:24:13.083171500 +0200
+@@ -28,3 +28,7 @@ __hypot:
+ .size hypot,.ende-hypot
+ .size hypotf,.ende-hypotf
+ .size hypotl,.ende-hypotl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ilogb.S dietlibc-0.30-execstack/i386/ilogb.S
+--- dietlibc-0.30/i386/ilogb.S 2001-07-30 15:53:14.000000000 +0200
++++ dietlibc-0.30-execstack/i386/ilogb.S 2006-09-07 12:24:13.083171500 +0200
+@@ -21,3 +21,7 @@ ilogb:
+ stc
+ rcrl %eax
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ipow.S dietlibc-0.30-execstack/i386/ipow.S
+--- dietlibc-0.30/i386/ipow.S 2001-07-30 15:45:17.000000000 +0200
++++ dietlibc-0.30-execstack/i386/ipow.S 2006-09-07 12:24:13.083171500 +0200
+@@ -25,3 +25,7 @@ ipow: fld1
+ .Lnomul:jnz .Lnext
+ fcomp
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/isleap.S dietlibc-0.30-execstack/i386/isleap.S
+--- dietlibc-0.30/i386/isleap.S 2001-07-30 15:34:41.000000000 +0200
++++ dietlibc-0.30-execstack/i386/isleap.S 2006-09-07 12:24:13.083171500 +0200
+@@ -26,3 +26,7 @@ __isleap:
+ .Lretzero:xorl %eax,%eax
+ ret
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ldexp.S dietlibc-0.30-execstack/i386/ldexp.S
+--- dietlibc-0.30/i386/ldexp.S 2002-12-15 20:49:56.000000000 +0100
++++ dietlibc-0.30-execstack/i386/ldexp.S 2006-09-07 12:24:13.083171500 +0200
+@@ -26,3 +26,7 @@ ldexpl:
+ .size ldexpl,.ende-ldexpl
+ .size ldexp,ldexpl-ldexp
+ .size ldexpf,ldexp-ldexpf
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/libm2.S dietlibc-0.30-execstack/i386/libm2.S
+--- dietlibc-0.30/i386/libm2.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/libm2.S 2006-09-07 12:24:13.087171750 +0200
+@@ -459,3 +459,7 @@ logbl:
+ ilogbl: fldt 4(%esp)
+ jmp __ilogb
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/listen.S dietlibc-0.30-execstack/i386/listen.S
+--- dietlibc-0.30/i386/listen.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/listen.S 2006-09-07 12:24:13.083171500 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(listen,LISTEN)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/log10.S dietlibc-0.30-execstack/i386/log10.S
+--- dietlibc-0.30/i386/log10.S 2003-03-30 21:19:53.000000000 +0200
++++ dietlibc-0.30-execstack/i386/log10.S 2006-09-07 12:24:13.079171250 +0200
+@@ -25,3 +25,7 @@ log10:
+ .size log10,.ende-log10
+ .size log10f,.ende-log10f
+ .size log10l,.ende-log10l
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/log1p.S dietlibc-0.30-execstack/i386/log1p.S
+--- dietlibc-0.30/i386/log1p.S 2003-03-30 21:19:53.000000000 +0200
++++ dietlibc-0.30-execstack/i386/log1p.S 2006-09-07 12:24:13.087171750 +0200
+@@ -38,3 +38,7 @@ __log1p:
+ .size log1pf,.ende-log1pf
+ .size log1pl,.ende-log1pl
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/log2.S dietlibc-0.30-execstack/i386/log2.S
+--- dietlibc-0.30/i386/log2.S 2001-07-18 02:20:09.000000000 +0200
++++ dietlibc-0.30-execstack/i386/log2.S 2006-09-07 12:24:13.087171750 +0200
+@@ -9,3 +9,7 @@ log2:
+
+ .ende:
+ .size log2,.ende-log2
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/log.S dietlibc-0.30-execstack/i386/log.S
+--- dietlibc-0.30/i386/log.S 2002-10-04 22:39:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/log.S 2006-09-07 12:24:13.083171500 +0200
+@@ -24,3 +24,7 @@ log:
+ .size log,.Lende-log
+ .size logl,.Lende-logl
+ .size logf,.Lende-logf
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/__longjmp.S dietlibc-0.30-execstack/i386/__longjmp.S
+--- dietlibc-0.30/i386/__longjmp.S 2001-07-02 18:06:48.000000000 +0200
++++ dietlibc-0.30-execstack/i386/__longjmp.S 2006-09-07 12:24:13.091172000 +0200
+@@ -17,3 +17,7 @@ __longjmp:
+ /* Jump to saved PC. */
+ jmp *%edx
+ .size __longjmp,.-__longjmp;
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/ltostr.S dietlibc-0.30-execstack/i386/ltostr.S
+--- dietlibc-0.30/i386/ltostr.S 2002-10-27 17:23:35.000000000 +0100
++++ dietlibc-0.30-execstack/i386/ltostr.S 2006-09-07 12:24:13.087171750 +0200
+@@ -60,3 +60,7 @@ __ltostr:
+ popl %esi
+ ret
+ .size __ltostr, . - __ltostr
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/mcount.S dietlibc-0.30-execstack/i386/mcount.S
+--- dietlibc-0.30/i386/mcount.S 2002-09-14 00:33:01.000000000 +0200
++++ dietlibc-0.30-execstack/i386/mcount.S 2006-09-07 12:24:13.083171500 +0200
+@@ -42,3 +42,7 @@ mcount:
+ ret
+
+ .size mcount,.-mcount
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/md5asm.S dietlibc-0.30-execstack/i386/md5asm.S
+--- dietlibc-0.30/i386/md5asm.S 2001-10-08 19:57:02.000000000 +0200
++++ dietlibc-0.30-execstack/i386/md5asm.S 2006-09-07 12:24:13.083171500 +0200
+@@ -298,3 +298,7 @@ MD5Update:
+ ret
+
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/memccpy.S dietlibc-0.30-execstack/i386/memccpy.S
+--- dietlibc-0.30/i386/memccpy.S 2003-10-15 17:32:09.000000000 +0200
++++ dietlibc-0.30-execstack/i386/memccpy.S 2006-09-07 12:24:13.083171500 +0200
+@@ -39,3 +39,7 @@ memccpy:
+ ret
+ .Lende:
+ .size memccpy,.Lende-memccpy
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/memchr.S dietlibc-0.30-execstack/i386/memchr.S
+--- dietlibc-0.30/i386/memchr.S 2003-02-18 21:57:26.000000000 +0100
++++ dietlibc-0.30-execstack/i386/memchr.S 2006-09-07 12:24:13.079171250 +0200
+@@ -22,3 +22,7 @@ memchr:
+
+ popl %edi
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/memcmp.S dietlibc-0.30-execstack/i386/memcmp.S
+--- dietlibc-0.30/i386/memcmp.S 2003-10-15 17:32:09.000000000 +0200
++++ dietlibc-0.30-execstack/i386/memcmp.S 2006-09-07 12:24:13.083171500 +0200
+@@ -20,3 +20,7 @@ memcmp:
+ popl %esi
+ ret
+ .size memcmp,.-memcmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/memcpy.S dietlibc-0.30-execstack/i386/memcpy.S
+--- dietlibc-0.30/i386/memcpy.S 2001-08-23 16:11:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/memcpy.S 2006-09-07 12:24:13.083171500 +0200
+@@ -14,3 +14,7 @@ memcpy:
+ popl %edi
+ popl %esi
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/memset.S dietlibc-0.30-execstack/i386/memset.S
+--- dietlibc-0.30/i386/memset.S 2001-08-23 16:11:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/memset.S 2006-09-07 12:24:13.083171500 +0200
+@@ -13,3 +13,7 @@ memset:
+ popl %eax
+ popl %edi
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/mmap64.S dietlibc-0.30-execstack/i386/mmap64.S
+--- dietlibc-0.30/i386/mmap64.S 2003-01-08 17:03:03.000000000 +0100
++++ dietlibc-0.30-execstack/i386/mmap64.S 2006-09-07 12:24:13.079171250 +0200
+@@ -61,3 +61,7 @@ mmap64:
+ jmp .Lerror
+ .Lende2:
+ .size mmap64,.Lende2-mmap64
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/mmap.S dietlibc-0.30-execstack/i386/mmap.S
+--- dietlibc-0.30/i386/mmap.S 2002-11-27 11:50:13.000000000 +0100
++++ dietlibc-0.30-execstack/i386/mmap.S 2006-09-07 12:24:13.091172000 +0200
+@@ -12,3 +12,7 @@ mmap:
+ ret
+ .Lende3:
+ .size mmap,.Lende3-mmap
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/poly.S dietlibc-0.30-execstack/i386/poly.S
+--- dietlibc-0.30/i386/poly.S 2001-07-30 15:59:22.000000000 +0200
++++ dietlibc-0.30-execstack/i386/poly.S 2006-09-07 12:24:13.079171250 +0200
+@@ -22,3 +22,7 @@ __poly:
+ jns .Lloop
+ fstp %st(1)
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/pow.S dietlibc-0.30-execstack/i386/pow.S
+--- dietlibc-0.30/i386/pow.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/pow.S 2006-09-07 12:24:13.083171500 +0200
+@@ -73,3 +73,7 @@ pow:
+ .size pow,.Lende-pow
+ .size powf,.Lende-powf
+ .size powl,.Lende-powl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/recvfrom.S dietlibc-0.30-execstack/i386/recvfrom.S
+--- dietlibc-0.30/i386/recvfrom.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/recvfrom.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(recvfrom,RECVFROM)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/recvmsg.S dietlibc-0.30-execstack/i386/recvmsg.S
+--- dietlibc-0.30/i386/recvmsg.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/recvmsg.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(recvmsg,RECVMSG)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/recv.S dietlibc-0.30-execstack/i386/recv.S
+--- dietlibc-0.30/i386/recv.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/recv.S 2006-09-07 12:24:13.079171250 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(recv,RECV)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/__restore_rt.S dietlibc-0.30-execstack/i386/__restore_rt.S
+--- dietlibc-0.30/i386/__restore_rt.S 2005-09-21 09:33:08.000000000 +0200
++++ dietlibc-0.30-execstack/i386/__restore_rt.S 2006-09-07 12:24:13.087171750 +0200
+@@ -20,3 +20,7 @@ __restore:
+ int $0x80
+ hlt /* die if syscall returns */
+ .size __restore,.-__restore
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/rint.S dietlibc-0.30-execstack/i386/rint.S
+--- dietlibc-0.30/i386/rint.S 2002-10-04 22:39:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/rint.S 2006-09-07 12:24:13.091172000 +0200
+@@ -21,3 +21,7 @@ rintl:
+ .size rint,.Lende-rint
+ .size rintl,.Lende-rintl
+ .size rintf,.Lende-rintf
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/select.S dietlibc-0.30-execstack/i386/select.S
+--- dietlibc-0.30/i386/select.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/i386/select.S 2006-09-07 12:24:13.083171500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(_newselect,select,__libc_select)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sendmsg.S dietlibc-0.30-execstack/i386/sendmsg.S
+--- dietlibc-0.30/i386/sendmsg.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/sendmsg.S 2006-09-07 12:24:13.079171250 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(sendmsg,SENDMSG)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/send.S dietlibc-0.30-execstack/i386/send.S
+--- dietlibc-0.30/i386/send.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/send.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(send,SEND)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sendto.S dietlibc-0.30-execstack/i386/sendto.S
+--- dietlibc-0.30/i386/sendto.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/sendto.S 2006-09-07 12:24:13.079171250 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(sendto,SENDTO)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/setjmp.S dietlibc-0.30-execstack/i386/setjmp.S
+--- dietlibc-0.30/i386/setjmp.S 2005-09-21 09:33:08.000000000 +0200
++++ dietlibc-0.30-execstack/i386/setjmp.S 2006-09-07 12:24:13.091172000 +0200
+@@ -45,3 +45,7 @@ __sigsetjmp_internal:
+ jmp __sigjmp_save
+ #endif
+ .size __sigsetjmp,.-__sigsetjmp;
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/setsockopt.S dietlibc-0.30-execstack/i386/setsockopt.S
+--- dietlibc-0.30/i386/setsockopt.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/setsockopt.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(setsockopt,SETSOCKOPT)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/shutdown.S dietlibc-0.30-execstack/i386/shutdown.S
+--- dietlibc-0.30/i386/shutdown.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/shutdown.S 2006-09-07 12:24:13.087171750 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(shutdown,SHUTDOWN)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sincos.S dietlibc-0.30-execstack/i386/sincos.S
+--- dietlibc-0.30/i386/sincos.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/sincos.S 2006-09-07 12:24:13.083171500 +0200
+@@ -62,3 +62,7 @@ sincosl:
+ .size sincos,.ende-sincos
+ .size sincosf,.ende-sincosf
+ .size sincosl,.ende-sincosl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sinh.S dietlibc-0.30-execstack/i386/sinh.S
+--- dietlibc-0.30/i386/sinh.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/sinh.S 2006-09-07 12:24:13.087171750 +0200
+@@ -41,3 +41,7 @@ sinhl:
+ .size sinh,.Lende-sinh
+ .size sinhf,.Lende-sinhf
+ .size sinhl,.Lende-sinhl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sin.S dietlibc-0.30-execstack/i386/sin.S
+--- dietlibc-0.30/i386/sin.S 2003-01-02 15:04:42.000000000 +0100
++++ dietlibc-0.30-execstack/i386/sin.S 2006-09-07 12:24:13.083171500 +0200
+@@ -32,3 +32,7 @@ sinl:
+ .size sin,.ende-sin
+ .size sinf,.ende-sinf
+ .size sinl,.ende-sinl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sleep.S dietlibc-0.30-execstack/i386/sleep.S
+--- dietlibc-0.30/i386/sleep.S 2002-02-25 17:00:50.000000000 +0100
++++ dietlibc-0.30-execstack/i386/sleep.S 2006-09-07 12:24:13.087171750 +0200
+@@ -23,3 +23,7 @@ sleep:
+ addl $16,%esp
+ PIC_RESTORE # non-PIC: empty line
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/socketcall.S dietlibc-0.30-execstack/i386/socketcall.S
+--- dietlibc-0.30/i386/socketcall.S 2002-09-14 00:33:01.000000000 +0200
++++ dietlibc-0.30-execstack/i386/socketcall.S 2006-09-07 12:24:13.083171500 +0200
+@@ -15,3 +15,7 @@ socketcall:
+ retl
+ .Lende:
+ .size socketcall,.Lende-socketcall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/socketpair.S dietlibc-0.30-execstack/i386/socketpair.S
+--- dietlibc-0.30/i386/socketpair.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/socketpair.S 2006-09-07 12:24:13.083171500 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(socketpair,SOCKETPAIR)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/socket.S dietlibc-0.30-execstack/i386/socket.S
+--- dietlibc-0.30/i386/socket.S 2002-08-27 15:55:31.000000000 +0200
++++ dietlibc-0.30-execstack/i386/socket.S 2006-09-07 12:24:13.083171500 +0200
+@@ -2,3 +2,7 @@
+ #include <syscalls.h>
+
+ __socketcall(socket,SOCKET)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sqrtl.S dietlibc-0.30-execstack/i386/sqrtl.S
+--- dietlibc-0.30/i386/sqrtl.S 2001-09-03 15:09:29.000000000 +0200
++++ dietlibc-0.30-execstack/i386/sqrtl.S 2006-09-07 12:24:13.087171750 +0200
+@@ -9,3 +9,7 @@ sqrtl:
+ .ende:
+ .size sqrtl,.ende-sqrtl
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/sqrt.S dietlibc-0.30-execstack/i386/sqrt.S
+--- dietlibc-0.30/i386/sqrt.S 2002-10-04 22:39:42.000000000 +0200
++++ dietlibc-0.30-execstack/i386/sqrt.S 2006-09-07 12:24:13.079171250 +0200
+@@ -21,3 +21,7 @@ sqrtl:
+ .size sqrt,.ende-sqrt
+ .size sqrtf,.ende-sqrtf
+ .size sqrtl,.ende-sqrtl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/start.S dietlibc-0.30-execstack/i386/start.S
+--- dietlibc-0.30/i386/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/i386/start.S 2006-09-07 12:24:13.083171500 +0200
+@@ -68,3 +68,7 @@ _start:
+ .Lstart:
+ .size _start,.Lstart-_start
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/stpcpy.S dietlibc-0.30-execstack/i386/stpcpy.S
+--- dietlibc-0.30/i386/stpcpy.S 2003-06-23 16:39:13.000000000 +0200
++++ dietlibc-0.30-execstack/i386/stpcpy.S 2006-09-07 12:24:13.091172000 +0200
+@@ -20,3 +20,7 @@ stpcpy:
+ ret
+ .Lende:
+ .size stpcpy,.Lende-stpcpy
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strcasecmp.S dietlibc-0.30-execstack/i386/strcasecmp.S
+--- dietlibc-0.30/i386/strcasecmp.S 2004-04-29 13:10:39.000000000 +0200
++++ dietlibc-0.30-execstack/i386/strcasecmp.S 2006-09-07 12:24:13.083171500 +0200
+@@ -32,3 +32,7 @@ strcasecmp:
+ jmp .Lret
+
+ .size strcasecmp,.-strcasecmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strcat.S dietlibc-0.30-execstack/i386/strcat.S
+--- dietlibc-0.30/i386/strcat.S 2003-06-23 16:39:13.000000000 +0200
++++ dietlibc-0.30-execstack/i386/strcat.S 2006-09-07 12:24:13.087171750 +0200
+@@ -28,3 +28,7 @@ strcat:
+ popl %esi
+ popl %edi
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strchr.S dietlibc-0.30-execstack/i386/strchr.S
+--- dietlibc-0.30/i386/strchr.S 2001-10-29 16:09:33.000000000 +0100
++++ dietlibc-0.30-execstack/i386/strchr.S 2006-09-07 12:24:13.079171250 +0200
+@@ -20,3 +20,7 @@ strchr:
+ .Lfound:
+ movl %ecx,%eax
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strcmp.S dietlibc-0.30-execstack/i386/strcmp.S
+--- dietlibc-0.30/i386/strcmp.S 2001-10-29 16:09:33.000000000 +0100
++++ dietlibc-0.30-execstack/i386/strcmp.S 2006-09-07 12:24:13.091172000 +0200
+@@ -29,3 +29,7 @@ strcmp:
+ testb %al, %al
+ jnz .Lloop
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strcpy.S dietlibc-0.30-execstack/i386/strcpy.S
+--- dietlibc-0.30/i386/strcpy.S 2001-08-23 18:39:18.000000000 +0200
++++ dietlibc-0.30-execstack/i386/strcpy.S 2006-09-07 12:24:13.087171750 +0200
+@@ -22,3 +22,7 @@ strcpy:
+ popl %esi
+ movl %edx,%eax
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strlen.S dietlibc-0.30-execstack/i386/strlen.S
+--- dietlibc-0.30/i386/strlen.S 2002-02-21 23:53:43.000000000 +0100
++++ dietlibc-0.30-execstack/i386/strlen.S 2006-09-07 12:24:13.079171250 +0200
+@@ -16,3 +16,7 @@ strlen:
+ .Lende:
+
+ .size strlen,.Lende-strlen
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strncmp.S dietlibc-0.30-execstack/i386/strncmp.S
+--- dietlibc-0.30/i386/strncmp.S 2003-10-15 17:32:09.000000000 +0200
++++ dietlibc-0.30-execstack/i386/strncmp.S 2006-09-07 12:24:13.087171750 +0200
+@@ -31,3 +31,7 @@ strncmp:
+ popl %esi
+ ret
+ .size strncmp,.-strncmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strncpy.S dietlibc-0.30-execstack/i386/strncpy.S
+--- dietlibc-0.30/i386/strncpy.S 2004-09-11 14:37:57.000000000 +0200
++++ dietlibc-0.30-execstack/i386/strncpy.S 2006-09-07 12:24:13.091172000 +0200
+@@ -47,3 +47,7 @@ strncpy:
+ popl %edi
+ popl %esi
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/strrchr.S dietlibc-0.30-execstack/i386/strrchr.S
+--- dietlibc-0.30/i386/strrchr.S 2003-10-13 16:39:23.000000000 +0200
++++ dietlibc-0.30-execstack/i386/strrchr.S 2006-09-07 12:24:13.087171750 +0200
+@@ -17,3 +17,7 @@ strrchr:
+ jmp .Lloop
+ .Lret:
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/tanh.S dietlibc-0.30-execstack/i386/tanh.S
+--- dietlibc-0.30/i386/tanh.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/tanh.S 2006-09-07 12:24:13.087171750 +0200
+@@ -41,3 +41,7 @@ tanhl:
+ .size tanh,.Lende-tanh
+ .size tanhf,.Lende-tanhf
+ .size tanhl,.Lende-tanhl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/tan.S dietlibc-0.30-execstack/i386/tan.S
+--- dietlibc-0.30/i386/tan.S 2004-12-17 20:22:11.000000000 +0100
++++ dietlibc-0.30-execstack/i386/tan.S 2006-09-07 12:24:13.079171250 +0200
+@@ -31,3 +31,7 @@ tanl:
+ .size tan,.ende-tan
+ .size tanf,.ende-tanf
+ .size tanl,.ende-tanl
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/__ten.S dietlibc-0.30-execstack/i386/__ten.S
+--- dietlibc-0.30/i386/__ten.S 2001-07-27 16:45:58.000000000 +0200
++++ dietlibc-0.30-execstack/i386/__ten.S 2006-09-07 12:24:13.083171500 +0200
+@@ -7,3 +7,7 @@
+ .type __ten,@object
+ .size __ten,4
+ __ten: .long 0x41200000
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/__testandset.S dietlibc-0.30-execstack/i386/__testandset.S
+--- dietlibc-0.30/i386/__testandset.S 2001-10-29 16:09:33.000000000 +0100
++++ dietlibc-0.30-execstack/i386/__testandset.S 2006-09-07 12:24:13.083171500 +0200
+@@ -7,3 +7,7 @@ __testandset:
+ incl %eax
+ xchgl %eax,(%edx)
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/unified.S dietlibc-0.30-execstack/i386/unified.S
+--- dietlibc-0.30/i386/unified.S 2004-01-15 18:35:43.000000000 +0100
++++ dietlibc-0.30-execstack/i386/unified.S 2006-09-07 12:24:13.083171500 +0200
+@@ -75,3 +75,7 @@ __unified_syscall:
+ int $0x80
+ ret
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/usleep.S dietlibc-0.30-execstack/i386/usleep.S
+--- dietlibc-0.30/i386/usleep.S 2002-02-25 17:00:50.000000000 +0100
++++ dietlibc-0.30-execstack/i386/usleep.S 2006-09-07 12:24:13.091172000 +0200
+@@ -29,3 +29,7 @@ usleep:
+ .Lende:
+ .size usleep,.Lende-usleep
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/vfork.S dietlibc-0.30-execstack/i386/vfork.S
+--- dietlibc-0.30/i386/vfork.S 2004-04-29 16:37:25.000000000 +0200
++++ dietlibc-0.30-execstack/i386/vfork.S 2006-09-07 12:24:13.083171500 +0200
+@@ -8,3 +8,7 @@ vfork:
+ int $0x80
+ jmpl *%edx
+ .size vfork, . - vfork
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/i386/write12.S dietlibc-0.30-execstack/i386/write12.S
+--- dietlibc-0.30/i386/write12.S 2002-02-25 17:00:50.000000000 +0100
++++ dietlibc-0.30-execstack/i386/write12.S 2006-09-07 12:24:13.079171250 +0200
+@@ -35,3 +35,7 @@ __write1:
+ addl $12,%esp # und das leidvolle Putzen
+ PIC_RESTORE # non-PIC: empty line
+ ret
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/accept.S dietlibc-0.30-execstack/ia64/accept.S
+--- dietlibc-0.30/ia64/accept.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/accept.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(accept, accept);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/bind.S dietlibc-0.30-execstack/ia64/bind.S
+--- dietlibc-0.30/ia64/bind.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/bind.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(bind, bind);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/clone.S dietlibc-0.30-execstack/ia64/clone.S
+--- dietlibc-0.30/ia64/clone.S 2006-06-21 22:01:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/clone.S 2006-09-07 12:24:13.107173000 +0200
+@@ -44,3 +44,7 @@ __clone:
+ br.ret.sptk.few b0
+ .endp __clone
+ .size __clone, . - __clone
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/connect.S dietlibc-0.30-execstack/ia64/connect.S
+--- dietlibc-0.30/ia64/connect.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/connect.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(connect, connect);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/fork.S dietlibc-0.30-execstack/ia64/fork.S
+--- dietlibc-0.30/ia64/fork.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/fork.S 2006-09-07 12:24:13.107173000 +0200
+@@ -16,3 +16,7 @@ __libc_fork:
+ ;;
+ mov r15 = __NR_clone
+ br __unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/getpeername.S dietlibc-0.30-execstack/ia64/getpeername.S
+--- dietlibc-0.30/ia64/getpeername.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/getpeername.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getpeername, getpeername);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/getsockname.S dietlibc-0.30-execstack/ia64/getsockname.S
+--- dietlibc-0.30/ia64/getsockname.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/getsockname.S 2006-09-07 12:24:13.103172750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsockname, getsockname);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/getsockopt.S dietlibc-0.30-execstack/ia64/getsockopt.S
+--- dietlibc-0.30/ia64/getsockopt.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/getsockopt.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsockopt, getsockopt);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/listen.S dietlibc-0.30-execstack/ia64/listen.S
+--- dietlibc-0.30/ia64/listen.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/listen.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(listen, listen);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/__longjmp.S dietlibc-0.30-execstack/ia64/__longjmp.S
+--- dietlibc-0.30/ia64/__longjmp.S 2005-03-15 09:51:22.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/__longjmp.S 2006-09-07 12:24:13.107173000 +0200
+@@ -164,3 +164,7 @@ LEAF(__longjmp)
+ mov pr=r24,-1
+ ret
+ END(__longjmp)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/msgctl.S dietlibc-0.30-execstack/ia64/msgctl.S
+--- dietlibc-0.30/ia64/msgctl.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/msgctl.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgctl,msgctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/msgget.S dietlibc-0.30-execstack/ia64/msgget.S
+--- dietlibc-0.30/ia64/msgget.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/msgget.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgget,msgget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/msgrcv.S dietlibc-0.30-execstack/ia64/msgrcv.S
+--- dietlibc-0.30/ia64/msgrcv.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/msgrcv.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgrcv,msgrcv)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/msgsnd.S dietlibc-0.30-execstack/ia64/msgsnd.S
+--- dietlibc-0.30/ia64/msgsnd.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/msgsnd.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgsnd,msgsnd)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/pipe.S dietlibc-0.30-execstack/ia64/pipe.S
+--- dietlibc-0.30/ia64/pipe.S 2003-11-04 13:20:44.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/pipe.S 2006-09-07 12:24:13.107173000 +0200
+@@ -20,3 +20,7 @@ pipe:
+
+ .endp pipe
+ .size pipe, . - pipe
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/recvfrom.S dietlibc-0.30-execstack/ia64/recvfrom.S
+--- dietlibc-0.30/ia64/recvfrom.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/recvfrom.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recvfrom, recvfrom);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/recvmsg.S dietlibc-0.30-execstack/ia64/recvmsg.S
+--- dietlibc-0.30/ia64/recvmsg.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/recvmsg.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recvmsg, recvmsg);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/recv.S dietlibc-0.30-execstack/ia64/recv.S
+--- dietlibc-0.30/ia64/recv.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/recv.S 2006-09-07 12:24:13.103172750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recv, recv);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/semctl.S dietlibc-0.30-execstack/ia64/semctl.S
+--- dietlibc-0.30/ia64/semctl.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/semctl.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(semctl,semctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/semget.S dietlibc-0.30-execstack/ia64/semget.S
+--- dietlibc-0.30/ia64/semget.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/semget.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(semget,semget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/semop.S dietlibc-0.30-execstack/ia64/semop.S
+--- dietlibc-0.30/ia64/semop.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/semop.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(semop,semop)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/sendmsg.S dietlibc-0.30-execstack/ia64/sendmsg.S
+--- dietlibc-0.30/ia64/sendmsg.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/sendmsg.S 2006-09-07 12:24:13.103172750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sendmsg, sendmsg);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/send.S dietlibc-0.30-execstack/ia64/send.S
+--- dietlibc-0.30/ia64/send.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/send.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(send, send);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/sendto.S dietlibc-0.30-execstack/ia64/sendto.S
+--- dietlibc-0.30/ia64/sendto.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/sendto.S 2006-09-07 12:24:13.103172750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sendto, sendto);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/setjmp.S dietlibc-0.30-execstack/ia64/setjmp.S
+--- dietlibc-0.30/ia64/setjmp.S 2005-03-15 09:51:22.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/setjmp.S 2006-09-07 12:24:13.107173000 +0200
+@@ -196,3 +196,7 @@ strong_alias(__sigsetjmp, _GI___sigsetjm
+
+ weak_extern(_setjmp)
+ weak_extern(setjmp)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/setsockopt.S dietlibc-0.30-execstack/ia64/setsockopt.S
+--- dietlibc-0.30/ia64/setsockopt.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/setsockopt.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setsockopt, setsockopt);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/shmat.S dietlibc-0.30-execstack/ia64/shmat.S
+--- dietlibc-0.30/ia64/shmat.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/shmat.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmat,shmat)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/shmctl.S dietlibc-0.30-execstack/ia64/shmctl.S
+--- dietlibc-0.30/ia64/shmctl.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/shmctl.S 2006-09-07 12:24:13.103172750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmctl,shmctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/shmdt.S dietlibc-0.30-execstack/ia64/shmdt.S
+--- dietlibc-0.30/ia64/shmdt.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/shmdt.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmdt,shmdt)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/shmget.S dietlibc-0.30-execstack/ia64/shmget.S
+--- dietlibc-0.30/ia64/shmget.S 2003-01-04 23:21:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/shmget.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmget,shmget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/shutdown.S dietlibc-0.30-execstack/ia64/shutdown.S
+--- dietlibc-0.30/ia64/shutdown.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/shutdown.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shutdown, shutdown);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/socketpair.S dietlibc-0.30-execstack/ia64/socketpair.S
+--- dietlibc-0.30/ia64/socketpair.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/socketpair.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socketpair, socketpair);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/socket.S dietlibc-0.30-execstack/ia64/socket.S
+--- dietlibc-0.30/ia64/socket.S 2002-07-03 22:33:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/socket.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socket, socket);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/start.S dietlibc-0.30-execstack/ia64/start.S
+--- dietlibc-0.30/ia64/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/start.S 2006-09-07 12:24:13.107173000 +0200
+@@ -51,3 +51,7 @@ _start:
+ br exit /* branch to exit */
+ .endp _start
+ .size _start, . - _start
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/__testandset.S dietlibc-0.30-execstack/ia64/__testandset.S
+--- dietlibc-0.30/ia64/__testandset.S 2006-06-21 22:01:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/__testandset.S 2006-09-07 12:24:13.107173000 +0200
+@@ -10,3 +10,7 @@ __testandset:
+ br.ret.sptk.clr b0
+ .endp __testandset
+ .size __testandset, . - __testandset
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/unified.S dietlibc-0.30-execstack/ia64/unified.S
+--- dietlibc-0.30/ia64/unified.S 2006-06-21 22:01:37.000000000 +0200
++++ dietlibc-0.30-execstack/ia64/unified.S 2006-09-07 12:24:13.107173000 +0200
+@@ -42,3 +42,7 @@ __error_unified_syscall:
+
+ .size __unified_syscall, __error_unified_syscall - __unified_syscall
+ .size __error_unified_syscall, . - __error_unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/utime.S dietlibc-0.30-execstack/ia64/utime.S
+--- dietlibc-0.30/ia64/utime.S 2002-11-09 18:44:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/utime.S 2006-09-07 12:24:13.107173000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(utimes,utime)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ia64/vfork.S dietlibc-0.30-execstack/ia64/vfork.S
+--- dietlibc-0.30/ia64/vfork.S 2002-11-09 18:44:47.000000000 +0100
++++ dietlibc-0.30-execstack/ia64/vfork.S 2006-09-07 12:24:13.107173000 +0200
+@@ -6,3 +6,7 @@ vfork:
+ mov r15 = __NR_clone
+ mov r32 = 16657
+ br __unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/libcompat/syscall.S dietlibc-0.30-execstack/libcompat/syscall.S
+--- dietlibc-0.30/libcompat/syscall.S 2006-04-04 05:42:48.000000000 +0200
++++ dietlibc-0.30-execstack/libcompat/syscall.S 2006-09-07 12:24:13.127174250 +0200
+@@ -133,3 +133,7 @@ syscall:
+ /* arch not implemented yet */
+ #endif
+ .size syscall, . - syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/libdl/_dl_jump.S dietlibc-0.30-execstack/libdl/_dl_jump.S
+--- dietlibc-0.30/libdl/_dl_jump.S 2002-03-04 17:18:13.000000000 +0100
++++ dietlibc-0.30-execstack/libdl/_dl_jump.S 2006-09-07 12:24:13.127174250 +0200
+@@ -53,3 +53,7 @@ _dl_jump:
+ mov pc, r12
+
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/accept.S dietlibc-0.30-execstack/mips/accept.S
+--- dietlibc-0.30/mips/accept.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/accept.S 2006-09-07 12:24:13.119173750 +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/mips/bind.S dietlibc-0.30-execstack/mips/bind.S
+--- dietlibc-0.30/mips/bind.S 2002-09-12 15:11:22.000000000 +0200
++++ dietlibc-0.30-execstack/mips/bind.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(bind,bind)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/clone.S dietlibc-0.30-execstack/mips/clone.S
+--- dietlibc-0.30/mips/clone.S 2002-03-20 13:27:03.000000000 +0100
++++ dietlibc-0.30-execstack/mips/clone.S 2006-09-07 12:24:13.115173500 +0200
+@@ -44,3 +44,7 @@ __clone:
+ jal _exit
+
+ .end __clone
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/connect.S dietlibc-0.30-execstack/mips/connect.S
+--- dietlibc-0.30/mips/connect.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/connect.S 2006-09-07 12:24:13.115173500 +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/mips/errlist.S dietlibc-0.30-execstack/mips/errlist.S
+--- dietlibc-0.30/mips/errlist.S 2005-05-15 01:35:39.000000000 +0200
++++ dietlibc-0.30-execstack/mips/errlist.S 2006-09-07 12:24:13.115173500 +0200
+@@ -336,3 +336,7 @@ sys_nerr:
+ /* handled in strerror.c
+ .LC1133: .string "Quota exceeded"
+ */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/getpeername.S dietlibc-0.30-execstack/mips/getpeername.S
+--- dietlibc-0.30/mips/getpeername.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/getpeername.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getpeername,getpeername)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/getsockname.S dietlibc-0.30-execstack/mips/getsockname.S
+--- dietlibc-0.30/mips/getsockname.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/getsockname.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsockname,getsockname)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/getsockopt.S dietlibc-0.30-execstack/mips/getsockopt.S
+--- dietlibc-0.30/mips/getsockopt.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/getsockopt.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsockopt,getsockopt)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/listen.S dietlibc-0.30-execstack/mips/listen.S
+--- dietlibc-0.30/mips/listen.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/listen.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(listen,listen)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/__longjmp.S dietlibc-0.30-execstack/mips/__longjmp.S
+--- dietlibc-0.30/mips/__longjmp.S 2003-04-07 20:24:53.000000000 +0200
++++ dietlibc-0.30-execstack/mips/__longjmp.S 2006-09-07 12:24:13.119173750 +0200
+@@ -33,3 +33,7 @@ __longjmp:
+ li $2, 1
+ 1: j $25
+ .end __longjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/pipe.S dietlibc-0.30-execstack/mips/pipe.S
+--- dietlibc-0.30/mips/pipe.S 2002-10-21 13:29:25.000000000 +0200
++++ dietlibc-0.30-execstack/mips/pipe.S 2006-09-07 12:24:13.115173500 +0200
+@@ -22,3 +22,7 @@ pipe:
+ la $25, error_unified_syscall
+ jr $25
+ .end pipe
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/__pread.S dietlibc-0.30-execstack/mips/__pread.S
+--- dietlibc-0.30/mips/__pread.S 2004-05-11 15:33:53.000000000 +0200
++++ dietlibc-0.30-execstack/mips/__pread.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(pread,__pread)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/__pwrite.S dietlibc-0.30-execstack/mips/__pwrite.S
+--- dietlibc-0.30/mips/__pwrite.S 2004-05-11 15:33:53.000000000 +0200
++++ dietlibc-0.30-execstack/mips/__pwrite.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(pwrite,__pwrite)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/recvfrom.S dietlibc-0.30-execstack/mips/recvfrom.S
+--- dietlibc-0.30/mips/recvfrom.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/recvfrom.S 2006-09-07 12:24:13.119173750 +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/mips/recvmsg.S dietlibc-0.30-execstack/mips/recvmsg.S
+--- dietlibc-0.30/mips/recvmsg.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/recvmsg.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recvmsg,recvmsg)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/recv.S dietlibc-0.30-execstack/mips/recv.S
+--- dietlibc-0.30/mips/recv.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/recv.S 2006-09-07 12:24:13.115173500 +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/mips/select.S dietlibc-0.30-execstack/mips/select.S
+--- dietlibc-0.30/mips/select.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/mips/select.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(_newselect,select)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/sendmsg.S dietlibc-0.30-execstack/mips/sendmsg.S
+--- dietlibc-0.30/mips/sendmsg.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/sendmsg.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sendmsg,sendmsg)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/send.S dietlibc-0.30-execstack/mips/send.S
+--- dietlibc-0.30/mips/send.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/send.S 2006-09-07 12:24:13.119173750 +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/mips/sendto.S dietlibc-0.30-execstack/mips/sendto.S
+--- dietlibc-0.30/mips/sendto.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/sendto.S 2006-09-07 12:24:13.115173500 +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/mips/setjmp.S dietlibc-0.30-execstack/mips/setjmp.S
+--- dietlibc-0.30/mips/setjmp.S 2002-09-12 12:33:48.000000000 +0200
++++ dietlibc-0.30-execstack/mips/setjmp.S 2006-09-07 12:24:13.119173750 +0200
+@@ -37,3 +37,7 @@ __sigsetjmp:
+ j $25
+ .end __sigsetjmp
+ .weak setjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/setsockopt.S dietlibc-0.30-execstack/mips/setsockopt.S
+--- dietlibc-0.30/mips/setsockopt.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/setsockopt.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setsockopt,setsockopt)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/shutdown.S dietlibc-0.30-execstack/mips/shutdown.S
+--- dietlibc-0.30/mips/shutdown.S 2002-09-12 15:11:22.000000000 +0200
++++ dietlibc-0.30-execstack/mips/shutdown.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shutdown,shutdown)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/socketcall.S dietlibc-0.30-execstack/mips/socketcall.S
+--- dietlibc-0.30/mips/socketcall.S 2002-09-12 15:11:22.000000000 +0200
++++ dietlibc-0.30-execstack/mips/socketcall.S 2006-09-07 12:24:13.115173500 +0200
+@@ -3,3 +3,7 @@
+ /*
+ * Doesn't exist on mips ( accept, bind, ... are SYSCALLS !?! )
+ */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/socketpair.S dietlibc-0.30-execstack/mips/socketpair.S
+--- dietlibc-0.30/mips/socketpair.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/socketpair.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socketpair,socketpair)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/socket.S dietlibc-0.30-execstack/mips/socket.S
+--- dietlibc-0.30/mips/socket.S 2002-09-12 15:07:47.000000000 +0200
++++ dietlibc-0.30-execstack/mips/socket.S 2006-09-07 12:24:13.115173500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socket,socket)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/start.S dietlibc-0.30-execstack/mips/start.S
+--- dietlibc-0.30/mips/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/mips/start.S 2006-09-07 12:24:13.115173500 +0200
+@@ -56,3 +56,7 @@ __start:
+ .type __main,@function
+ __main:
+ j $31
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/__testandset.S dietlibc-0.30-execstack/mips/__testandset.S
+--- dietlibc-0.30/mips/__testandset.S 2003-02-19 13:10:12.000000000 +0100
++++ dietlibc-0.30-execstack/mips/__testandset.S 2006-09-07 12:24:13.115173500 +0200
+@@ -15,3 +15,7 @@ __testandset:
+ 1: .set mips0
+ jr $31
+ .end __testandset
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/mips/unified.S dietlibc-0.30-execstack/mips/unified.S
+--- dietlibc-0.30/mips/unified.S 2002-12-11 20:31:04.000000000 +0100
++++ dietlibc-0.30-execstack/mips/unified.S 2006-09-07 12:24:13.115173500 +0200
+@@ -47,3 +47,7 @@ error_unified_syscall:
+ jr $31
+ #endif
+ .end error_unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/accept.S dietlibc-0.30-execstack/parisc/accept.S
+--- dietlibc-0.30/parisc/accept.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/accept.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(accept, accept);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/bind.S dietlibc-0.30-execstack/parisc/bind.S
+--- dietlibc-0.30/parisc/bind.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/bind.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(bind, bind);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/clone.S dietlibc-0.30-execstack/parisc/clone.S
+--- dietlibc-0.30/parisc/clone.S 2002-06-11 12:59:44.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/clone.S 2006-09-07 12:24:13.123174000 +0200
+@@ -38,3 +38,7 @@ __clone:
+ copy %r28,%r26 /* return -> arg0 */
+
+ iitlbp %r0,(%r0) /* DIE ! DIE ! */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/connect.S dietlibc-0.30-execstack/parisc/connect.S
+--- dietlibc-0.30/parisc/connect.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/connect.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(connect, connect);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/getpeername.S dietlibc-0.30-execstack/parisc/getpeername.S
+--- dietlibc-0.30/parisc/getpeername.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/getpeername.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getpeername, getpeername);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/getsockname.S dietlibc-0.30-execstack/parisc/getsockname.S
+--- dietlibc-0.30/parisc/getsockname.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/getsockname.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsockname, getsockname);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/getsockopt.S dietlibc-0.30-execstack/parisc/getsockopt.S
+--- dietlibc-0.30/parisc/getsockopt.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/getsockopt.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall5(getsockopt, getsockopt);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/listen.S dietlibc-0.30-execstack/parisc/listen.S
+--- dietlibc-0.30/parisc/listen.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/listen.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(listen, listen);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/_llseek.S dietlibc-0.30-execstack/parisc/_llseek.S
+--- dietlibc-0.30/parisc/_llseek.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/_llseek.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall5(llseek, llseek);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/__longjmp.S dietlibc-0.30-execstack/parisc/__longjmp.S
+--- dietlibc-0.30/parisc/__longjmp.S 2002-01-11 19:06:53.000000000 +0100
++++ dietlibc-0.30-execstack/parisc/__longjmp.S 2006-09-07 12:24:13.123174000 +0200
+@@ -60,3 +60,7 @@ __longjmp:
+ fldd 0(%sr0, %r20), %fr21
+
+ bv,n %r0(%rp)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/mmap.S dietlibc-0.30-execstack/parisc/mmap.S
+--- dietlibc-0.30/parisc/mmap.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/mmap.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall6(mmap, mmap);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/mount.S dietlibc-0.30-execstack/parisc/mount.S
+--- dietlibc-0.30/parisc/mount.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/mount.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall5(mount, mount);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/recvfrom.S dietlibc-0.30-execstack/parisc/recvfrom.S
+--- dietlibc-0.30/parisc/recvfrom.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/recvfrom.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall6(recvfrom, recvfrom);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/recvmsg.S dietlibc-0.30-execstack/parisc/recvmsg.S
+--- dietlibc-0.30/parisc/recvmsg.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/recvmsg.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recvmsg, recvmsg);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/recv.S dietlibc-0.30-execstack/parisc/recv.S
+--- dietlibc-0.30/parisc/recv.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/recv.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recv, recv);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/select.S dietlibc-0.30-execstack/parisc/select.S
+--- dietlibc-0.30/parisc/select.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/select.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall5(select, select);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/sendmsg.S dietlibc-0.30-execstack/parisc/sendmsg.S
+--- dietlibc-0.30/parisc/sendmsg.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/sendmsg.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sendmsg, sendmsg);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/send.S dietlibc-0.30-execstack/parisc/send.S
+--- dietlibc-0.30/parisc/send.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/send.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(send, send);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/sendto.S dietlibc-0.30-execstack/parisc/sendto.S
+--- dietlibc-0.30/parisc/sendto.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/sendto.S 2006-09-07 12:24:13.119173750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall6(sendto, sendto);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/setjmp.S dietlibc-0.30-execstack/parisc/setjmp.S
+--- dietlibc-0.30/parisc/setjmp.S 2003-09-21 15:03:49.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/setjmp.S 2006-09-07 12:24:13.123174000 +0200
+@@ -65,3 +65,7 @@ __sigsetjmp:
+ fstd %fr21, 0(%sr0, %r19)
+ b,l __sigjmp_save, %r0
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/setsockopt.S dietlibc-0.30-execstack/parisc/setsockopt.S
+--- dietlibc-0.30/parisc/setsockopt.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/setsockopt.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall5(setsockopt, setsockopt);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/shutdown.S dietlibc-0.30-execstack/parisc/shutdown.S
+--- dietlibc-0.30/parisc/shutdown.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/shutdown.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shutdown, shutdown);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/socketpair.S dietlibc-0.30-execstack/parisc/socketpair.S
+--- dietlibc-0.30/parisc/socketpair.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/socketpair.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socketpair, socketpair);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/socket.S dietlibc-0.30-execstack/parisc/socket.S
+--- dietlibc-0.30/parisc/socket.S 2002-07-03 22:33:38.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/socket.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socket, socket);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/start.S dietlibc-0.30-execstack/parisc/start.S
+--- dietlibc-0.30/parisc/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/start.S 2006-09-07 12:24:13.123174000 +0200
+@@ -50,3 +50,7 @@ _start:
+ or %r28, %r28, %r26
+ .EXIT
+ .PROCEND
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strcasecmp.S dietlibc-0.30-execstack/parisc/strcasecmp.S
+--- dietlibc-0.30/parisc/strcasecmp.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strcasecmp.S 2006-09-07 12:24:13.123174000 +0200
+@@ -37,3 +37,7 @@ strcasecmp:
+ .EXIT
+ .PROCEND
+ .EXPORT strcasecmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strcmp.S dietlibc-0.30-execstack/parisc/strcmp.S
+--- dietlibc-0.30/parisc/strcmp.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strcmp.S 2006-09-07 12:24:13.123174000 +0200
+@@ -16,3 +16,7 @@ strcmp:
+ .EXIT
+ .PROCEND
+ .EXPORT strcmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strlen.S dietlibc-0.30-execstack/parisc/strlen.S
+--- dietlibc-0.30/parisc/strlen.S 2003-09-21 15:03:49.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strlen.S 2006-09-07 12:24:13.123174000 +0200
+@@ -48,3 +48,7 @@ strlen:
+ .PROCEND
+ .EXPORT strlen
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strncasecmp.S dietlibc-0.30-execstack/parisc/strncasecmp.S
+--- dietlibc-0.30/parisc/strncasecmp.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strncasecmp.S 2006-09-07 12:24:13.119173750 +0200
+@@ -37,3 +37,7 @@ strncasecmp:
+ .EXIT
+ .PROCEND
+ .EXPORT strncasecmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strncmp.S dietlibc-0.30-execstack/parisc/strncmp.S
+--- dietlibc-0.30/parisc/strncmp.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strncmp.S 2006-09-07 12:24:13.123174000 +0200
+@@ -19,3 +19,7 @@ strncmp:
+ .EXIT
+ .PROCEND
+ .EXPORT strncmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strncpy.S dietlibc-0.30-execstack/parisc/strncpy.S
+--- dietlibc-0.30/parisc/strncpy.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strncpy.S 2006-09-07 12:24:13.123174000 +0200
+@@ -15,3 +15,7 @@ strncpy:
+ .EXIT
+ .PROCEND
+ .EXPORT strncpy
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strpbrk.S dietlibc-0.30-execstack/parisc/strpbrk.S
+--- dietlibc-0.30/parisc/strpbrk.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strpbrk.S 2006-09-07 12:24:13.123174000 +0200
+@@ -24,3 +24,7 @@ strpbrk:
+ .EXIT
+ .PROCEND
+ .EXPORT strpbrk
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strrchr.S dietlibc-0.30-execstack/parisc/strrchr.S
+--- dietlibc-0.30/parisc/strrchr.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strrchr.S 2006-09-07 12:24:13.123174000 +0200
+@@ -28,3 +28,7 @@ strrchr:
+ .EXIT
+ .PROCEND
+ .EXPORT strrchr
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/strstr.S dietlibc-0.30-execstack/parisc/strstr.S
+--- dietlibc-0.30/parisc/strstr.S 2003-09-16 16:27:33.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/strstr.S 2006-09-07 12:24:13.123174000 +0200
+@@ -32,3 +32,7 @@ strstr:
+ .EXIT
+ .PROCEND
+ .EXPORT strstr
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/__testandset.S dietlibc-0.30-execstack/parisc/__testandset.S
+--- dietlibc-0.30/parisc/__testandset.S 2002-01-28 18:09:41.000000000 +0100
++++ dietlibc-0.30-execstack/parisc/__testandset.S 2006-09-07 12:24:13.123174000 +0200
+@@ -6,3 +6,7 @@ __testandset:
+ ldi 1,%r19
+ bv %r0(%r2)
+ xor %r28,%r19,%r28
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/umount.S dietlibc-0.30-execstack/parisc/umount.S
+--- dietlibc-0.30/parisc/umount.S 2003-09-16 16:25:07.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/umount.S 2006-09-07 12:24:13.123174000 +0200
+@@ -8,3 +8,7 @@ umount:
+ ldi 0, %r25
+ b __unified_syscall
+ ldi __NR_umount2, %r20
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/parisc/unified.S dietlibc-0.30-execstack/parisc/unified.S
+--- dietlibc-0.30/parisc/unified.S 2006-04-04 05:10:40.000000000 +0200
++++ dietlibc-0.30-execstack/parisc/unified.S 2006-09-07 12:24:13.123174000 +0200
+@@ -69,3 +69,7 @@ __error_unified_syscall:
+ #include "dietuglyweaks.h"
+
+ bv,n %r0(%rp)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc/clone.S dietlibc-0.30-execstack/ppc/clone.S
+--- dietlibc-0.30/ppc/clone.S 2001-12-13 17:05:03.000000000 +0100
++++ dietlibc-0.30-execstack/ppc/clone.S 2006-09-07 12:24:13.119173750 +0200
+@@ -46,3 +46,7 @@ __clone:
+ .Lclone_error:
+ li 3, EINVAL
+ b error_unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc/__longjmp.S dietlibc-0.30-execstack/ppc/__longjmp.S
+--- dietlibc-0.30/ppc/__longjmp.S 2001-01-25 18:23:36.000000000 +0100
++++ dietlibc-0.30-execstack/ppc/__longjmp.S 2006-09-07 12:24:13.119173750 +0200
+@@ -57,3 +57,7 @@ __longjmp:
+ blr
+ .size __longjmp,.-__longjmp
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc/setjmp.S dietlibc-0.30-execstack/ppc/setjmp.S
+--- dietlibc-0.30/ppc/setjmp.S 2001-01-09 18:57:44.000000000 +0100
++++ dietlibc-0.30-execstack/ppc/setjmp.S 2006-09-07 12:24:13.119173750 +0200
+@@ -54,3 +54,7 @@ __sigsetjmp:
+ stfd 31,((JB_FPRS+17*2)*4)(3)
+ b JUMPTARGET (__sigjmp_save)
+ .size __sigsetjmp,.-__sigsetjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc/start.S dietlibc-0.30-execstack/ppc/start.S
+--- dietlibc-0.30/ppc/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/ppc/start.S 2006-09-07 12:24:13.119173750 +0200
+@@ -50,3 +50,7 @@ __data_start:
+ .lcomm __libc_stack_end,4,4
+ .type __libc_stack_end,@object
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc/__testandset.S dietlibc-0.30-execstack/ppc/__testandset.S
+--- dietlibc-0.30/ppc/__testandset.S 2002-09-16 13:17:01.000000000 +0200
++++ dietlibc-0.30-execstack/ppc/__testandset.S 2006-09-07 12:24:13.119173750 +0200
+@@ -10,3 +10,7 @@ __testandset:
+ blr
+ .size __testandset,.-__testandset
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc/unified.S dietlibc-0.30-execstack/ppc/unified.S
+--- dietlibc-0.30/ppc/unified.S 2002-01-21 16:55:19.000000000 +0100
++++ dietlibc-0.30-execstack/ppc/unified.S 2006-09-07 12:24:13.119173750 +0200
+@@ -38,3 +38,7 @@ error_unified_syscall:
+
+ blr
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc64/clone.S dietlibc-0.30-execstack/ppc64/clone.S
+--- dietlibc-0.30/ppc64/clone.S 2005-05-13 20:39:32.000000000 +0200
++++ dietlibc-0.30-execstack/ppc64/clone.S 2006-09-07 12:24:13.091172000 +0200
+@@ -50,3 +50,7 @@ __clone:
+ .Lclone_error:
+ li 3, EINVAL
+ b error_unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc64/__longjmp.S dietlibc-0.30-execstack/ppc64/__longjmp.S
+--- dietlibc-0.30/ppc64/__longjmp.S 2005-09-21 09:33:08.000000000 +0200
++++ dietlibc-0.30-execstack/ppc64/__longjmp.S 2006-09-07 12:24:13.091172000 +0200
+@@ -52,3 +52,7 @@
+ mr 3,4
+ blr
+ .size .__longjmp,.-.__longjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc64/setjmp.S dietlibc-0.30-execstack/ppc64/setjmp.S
+--- dietlibc-0.30/ppc64/setjmp.S 2005-09-21 09:33:08.000000000 +0200
++++ dietlibc-0.30-execstack/ppc64/setjmp.S 2006-09-07 12:24:13.091172000 +0200
+@@ -57,3 +57,7 @@
+ stfd 31,((JB_FPRS+17)*8)(3)
+ b JUMPTARGET (__sigjmp_save)
+ .size .__sigsetjmp,.-.__sigsetjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc64/start.S dietlibc-0.30-execstack/ppc64/start.S
+--- dietlibc-0.30/ppc64/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/ppc64/start.S 2006-09-07 12:24:13.091172000 +0200
+@@ -89,3 +89,7 @@ __data_start:
+ .lcomm __libc_stack_end,8,8
+ .type __libc_stack_end,@object
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc64/__testandset.S dietlibc-0.30-execstack/ppc64/__testandset.S
+--- dietlibc-0.30/ppc64/__testandset.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/ppc64/__testandset.S 2006-09-07 12:24:13.091172000 +0200
+@@ -10,3 +10,7 @@ __testandset:
+ blr
+ .size __testandset,.-__testandset
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc64/umount.S dietlibc-0.30-execstack/ppc64/umount.S
+--- dietlibc-0.30/ppc64/umount.S 2004-12-17 19:47:59.000000000 +0100
++++ dietlibc-0.30-execstack/ppc64/umount.S 2006-09-07 12:24:13.091172000 +0200
+@@ -6,3 +6,7 @@ diet_proto(umount)
+ li 0, __NR_umount2
+ li 4, 0
+ b __unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/ppc64/unified.S dietlibc-0.30-execstack/ppc64/unified.S
+--- dietlibc-0.30/ppc64/unified.S 2005-05-13 20:39:32.000000000 +0200
++++ dietlibc-0.30-execstack/ppc64/unified.S 2006-09-07 12:24:13.091172000 +0200
+@@ -69,3 +69,7 @@ diet_proto_weak(__nop)
+ diet_proto_weak(__you_tried_to_link_a_dietlibc_object_against_glibc)
+ diet_proto_weak(exit)
+ diet_proto(_exit)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/clone.S dietlibc-0.30-execstack/s390/clone.S
+--- dietlibc-0.30/s390/clone.S 2002-09-16 13:17:01.000000000 +0200
++++ dietlibc-0.30-execstack/s390/clone.S 2006-09-07 12:24:13.107173000 +0200
+@@ -35,3 +35,7 @@ thread_start:
+ .L2: al %r1, [.L3-.L2](%r1)
+ br %r1
+ .L3: .long __error_unified_syscall-.L0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/__longjmp.S dietlibc-0.30-execstack/s390/__longjmp.S
+--- dietlibc-0.30/s390/__longjmp.S 2001-11-26 15:50:08.000000000 +0100
++++ dietlibc-0.30-execstack/s390/__longjmp.S 2006-09-07 12:24:13.115173500 +0200
+@@ -13,3 +13,7 @@ __longjmp:
+ 1: lr %r2,%r3
+ br %r14
+ .size __longjmp,.-__longjmp;
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/mmap64.S dietlibc-0.30-execstack/s390/mmap64.S
+--- dietlibc-0.30/s390/mmap64.S 2006-04-04 05:42:48.000000000 +0200
++++ dietlibc-0.30-execstack/s390/mmap64.S 2006-09-07 12:24:13.107173000 +0200
+@@ -50,3 +50,7 @@ mmap64:
+ lm %r6,%r15,24(%r15) /* Load registers. */
+ j __unified_syscall
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/mmap.S dietlibc-0.30-execstack/s390/mmap.S
+--- dietlibc-0.30/s390/mmap.S 2006-04-04 05:42:48.000000000 +0200
++++ dietlibc-0.30-execstack/s390/mmap.S 2006-09-07 12:24:13.115173500 +0200
+@@ -45,3 +45,7 @@ mmap:
+ /* Successful; return the syscall's value. */
+ br %r14
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/select.S dietlibc-0.30-execstack/s390/select.S
+--- dietlibc-0.30/s390/select.S 2005-03-23 20:57:53.000000000 +0100
++++ dietlibc-0.30-execstack/s390/select.S 2006-09-07 12:24:13.111173250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(_newselect,select)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/setjmp.S dietlibc-0.30-execstack/s390/setjmp.S
+--- dietlibc-0.30/s390/setjmp.S 2001-11-26 15:50:08.000000000 +0100
++++ dietlibc-0.30-execstack/s390/setjmp.S 2006-09-07 12:24:13.115173500 +0200
+@@ -38,3 +38,7 @@ __sigsetjmp:
+ .L1: .long __sigjmp_save
+ #endif
+ .size __sigsetjmp,.-__sigsetjmp;
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/start.S dietlibc-0.30-execstack/s390/start.S
+--- dietlibc-0.30/s390/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/s390/start.S 2006-09-07 12:24:13.107173000 +0200
+@@ -54,3 +54,7 @@ _start:
+ .Lstart:
+ .size _start,.Lstart-_start
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/__testandset.S dietlibc-0.30-execstack/s390/__testandset.S
+--- dietlibc-0.30/s390/__testandset.S 2001-11-29 17:53:32.000000000 +0100
++++ dietlibc-0.30-execstack/s390/__testandset.S 2006-09-07 12:24:13.107173000 +0200
+@@ -9,3 +9,7 @@ __testandset:
+ xr %r2,%r0
+ br %r14
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390/unified.S dietlibc-0.30-execstack/s390/unified.S
+--- dietlibc-0.30/s390/unified.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/s390/unified.S 2006-09-07 12:24:13.107173000 +0200
+@@ -52,3 +52,7 @@ __error_unified_syscall:
+ #else
+ .long errno
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/clone.S dietlibc-0.30-execstack/s390x/clone.S
+--- dietlibc-0.30/s390x/clone.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/s390x/clone.S 2006-09-07 12:24:13.123174000 +0200
+@@ -35,3 +35,7 @@ thread_start:
+ .L2: al %r1, [.L3-.L2](%r1)
+ br %r1
+ .L3: .long __error_unified_syscall-.L0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/__longjmp.S dietlibc-0.30-execstack/s390x/__longjmp.S
+--- dietlibc-0.30/s390x/__longjmp.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/s390x/__longjmp.S 2006-09-07 12:24:13.127174250 +0200
+@@ -13,3 +13,7 @@ __longjmp:
+ 1: lr %r2,%r3
+ br %r14
+ .size __longjmp,.-__longjmp;
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/mmap.S dietlibc-0.30-execstack/s390x/mmap.S
+--- dietlibc-0.30/s390x/mmap.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/s390x/mmap.S 2006-09-07 12:24:13.127174250 +0200
+@@ -34,3 +34,7 @@ mmap:
+ lmg %r6,%r15,48(%r15) /* Load registers. */
+
+ j __unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/select.S dietlibc-0.30-execstack/s390x/select.S
+--- dietlibc-0.30/s390x/select.S 2005-03-23 20:57:53.000000000 +0100
++++ dietlibc-0.30-execstack/s390x/select.S 2006-09-07 12:24:13.123174000 +0200
+@@ -1 +1,5 @@
+ #include "s390/select.S"
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/setjmp.S dietlibc-0.30-execstack/s390x/setjmp.S
+--- dietlibc-0.30/s390x/setjmp.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/s390x/setjmp.S 2006-09-07 12:24:13.127174250 +0200
+@@ -38,3 +38,7 @@ __sigsetjmp:
+ .L1: .long __sigjmp_save
+ #endif
+ .size __sigsetjmp,.-__sigsetjmp;
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/start.S dietlibc-0.30-execstack/s390x/start.S
+--- dietlibc-0.30/s390x/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/s390x/start.S 2006-09-07 12:24:13.123174000 +0200
+@@ -42,3 +42,7 @@ _start:
+ .align 4
+ .Lstart:
+ .size _start,.Lstart-_start
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/__testandset.S dietlibc-0.30-execstack/s390x/__testandset.S
+--- dietlibc-0.30/s390x/__testandset.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/s390x/__testandset.S 2006-09-07 12:24:13.123174000 +0200
+@@ -9,3 +9,7 @@ __testandset:
+ xr %r2,%r0
+ br %r14
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/s390x/unified.S dietlibc-0.30-execstack/s390x/unified.S
+--- dietlibc-0.30/s390x/unified.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/s390x/unified.S 2006-09-07 12:24:13.123174000 +0200
+@@ -44,3 +44,7 @@ __error_unified_syscall:
+ br %r14
+
+ .align 4
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/atol.S dietlibc-0.30-execstack/sparc/atol.S
+--- dietlibc-0.30/sparc/atol.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/atol.S 2006-09-07 12:24:13.103172750 +0200
+@@ -46,3 +46,7 @@ atol:
+ .Lretl:
+ retl
+ mov %o3, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/clone.S dietlibc-0.30-execstack/sparc/clone.S
+--- dietlibc-0.30/sparc/clone.S 2003-05-15 17:17:10.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/clone.S 2006-09-07 12:24:13.103172750 +0200
+@@ -42,3 +42,7 @@ __clone:
+ call _exit /* child returned */
+ nop
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/errlist.S dietlibc-0.30-execstack/sparc/errlist.S
+--- dietlibc-0.30/sparc/errlist.S 2005-05-15 01:35:39.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/errlist.S 2006-09-07 12:24:13.099172500 +0200
+@@ -288,3 +288,7 @@ sys_nerr:
+ .LC131: .string "Key was rejected by service"
+
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/fork.S dietlibc-0.30-execstack/sparc/fork.S
+--- dietlibc-0.30/sparc/fork.S 2003-05-15 17:17:10.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/fork.S 2006-09-07 12:24:13.103172750 +0200
+@@ -13,3 +13,7 @@ __libc_fork:
+ retl
+ and %o0, %o1, %o0
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/__longjmp.S dietlibc-0.30-execstack/sparc/__longjmp.S
+--- dietlibc-0.30/sparc/__longjmp.S 2001-07-02 18:06:49.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/__longjmp.S 2006-09-07 12:24:13.103172750 +0200
+@@ -66,3 +66,7 @@ __longjmp:
+
+ .size __longjmp, . - __longjmp
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/memccpy.S dietlibc-0.30-execstack/sparc/memccpy.S
+--- dietlibc-0.30/sparc/memccpy.S 2003-10-15 18:19:53.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/memccpy.S 2006-09-07 12:24:13.103172750 +0200
+@@ -25,3 +25,7 @@ memccpy:
+ .Lret:
+ retl
+ add %o0, %o4, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/memchr.S dietlibc-0.30-execstack/sparc/memchr.S
+--- dietlibc-0.30/sparc/memchr.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/memchr.S 2006-09-07 12:24:13.099172500 +0200
+@@ -23,3 +23,7 @@ memchr:
+ .Lret:
+ retl
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/memcmp.S dietlibc-0.30-execstack/sparc/memcmp.S
+--- dietlibc-0.30/sparc/memcmp.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/memcmp.S 2006-09-07 12:24:13.103172750 +0200
+@@ -25,3 +25,7 @@ memcmp:
+ .Lret:
+ retl
+ sub %o3, %o4, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/memcpy.S dietlibc-0.30-execstack/sparc/memcpy.S
+--- dietlibc-0.30/sparc/memcpy.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/memcpy.S 2006-09-07 12:24:13.103172750 +0200
+@@ -23,3 +23,7 @@ memcpy:
+ .Lret:
+ retl
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/memmove.S dietlibc-0.30-execstack/sparc/memmove.S
+--- dietlibc-0.30/sparc/memmove.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/memmove.S 2006-09-07 12:24:13.103172750 +0200
+@@ -32,3 +32,7 @@ memmove:
+ .Lret:
+ retl
+ mov %o5, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/memset.S dietlibc-0.30-execstack/sparc/memset.S
+--- dietlibc-0.30/sparc/memset.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/memset.S 2006-09-07 12:24:13.099172500 +0200
+@@ -17,3 +17,7 @@ memset:
+ stb %o1, [%o0+%o2]
+ retl
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/pipe.S dietlibc-0.30-execstack/sparc/pipe.S
+--- dietlibc-0.30/sparc/pipe.S 2003-05-15 17:17:10.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/pipe.S 2006-09-07 12:24:13.099172500 +0200
+@@ -14,3 +14,7 @@ pipe:
+ retl
+ mov %g0, %o0
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/rem.S dietlibc-0.30-execstack/sparc/rem.S
+--- dietlibc-0.30/sparc/rem.S 2005-02-10 15:50:21.000000000 +0100
++++ dietlibc-0.30-execstack/sparc/rem.S 2006-09-07 12:24:13.099172500 +0200
+@@ -364,3 +364,7 @@
+
+ .size .rem,.-.rem;
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/sdiv.S dietlibc-0.30-execstack/sparc/sdiv.S
+--- dietlibc-0.30/sparc/sdiv.S 2005-02-10 15:50:21.000000000 +0100
++++ dietlibc-0.30-execstack/sparc/sdiv.S 2006-09-07 12:24:13.099172500 +0200
+@@ -364,3 +364,7 @@
+
+ .size .div,.-.div;
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/setjmp.S dietlibc-0.30-execstack/sparc/setjmp.S
+--- dietlibc-0.30/sparc/setjmp.S 2001-07-02 18:06:49.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/setjmp.S 2006-09-07 12:24:13.103172750 +0200
+@@ -37,3 +37,7 @@ __sigsetjmp:
+ mov %g1, %o7
+ .size __sigsetjmp,.-__sigsetjmp
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/start.S dietlibc-0.30-execstack/sparc/start.S
+--- dietlibc-0.30/sparc/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/start.S 2006-09-07 12:24:13.099172500 +0200
+@@ -47,3 +47,7 @@ _start:
+
+ .size _start, .-_start
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strcat.S dietlibc-0.30-execstack/sparc/strcat.S
+--- dietlibc-0.30/sparc/strcat.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strcat.S 2006-09-07 12:24:13.103172750 +0200
+@@ -27,3 +27,7 @@ strcat:
+ inc %o3
+ retl
+ mov %o4, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strchr.S dietlibc-0.30-execstack/sparc/strchr.S
+--- dietlibc-0.30/sparc/strchr.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strchr.S 2006-09-07 12:24:13.099172500 +0200
+@@ -22,3 +22,7 @@ strchr:
+ .Lfound:
+ retl
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strcmp.S dietlibc-0.30-execstack/sparc/strcmp.S
+--- dietlibc-0.30/sparc/strcmp.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strcmp.S 2006-09-07 12:24:13.103172750 +0200
+@@ -24,3 +24,7 @@ strcmp:
+ .Lret:
+ retl
+ sub %o2, %o3, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strcpy.S dietlibc-0.30-execstack/sparc/strcpy.S
+--- dietlibc-0.30/sparc/strcpy.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strcpy.S 2006-09-07 12:24:13.103172750 +0200
+@@ -21,3 +21,7 @@ strcpy:
+ inc %o2
+ retl
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strlen.S dietlibc-0.30-execstack/sparc/strlen.S
+--- dietlibc-0.30/sparc/strlen.S 2002-07-26 20:44:33.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strlen.S 2006-09-07 12:24:13.099172500 +0200
+@@ -9,3 +9,7 @@ strlen:
+ add %o0, 1, %o0
+ retl
+ sub %o0, %o1, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strncmp.S dietlibc-0.30-execstack/sparc/strncmp.S
+--- dietlibc-0.30/sparc/strncmp.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strncmp.S 2006-09-07 12:24:13.103172750 +0200
+@@ -27,3 +27,7 @@ strncmp:
+ .Lret:
+ retl
+ sub %o3, %o4, %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strncpy.S dietlibc-0.30-execstack/sparc/strncpy.S
+--- dietlibc-0.30/sparc/strncpy.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strncpy.S 2006-09-07 12:24:13.103172750 +0200
+@@ -25,3 +25,7 @@ strncpy:
+ .Lret:
+ retl
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/strstr.S dietlibc-0.30-execstack/sparc/strstr.S
+--- dietlibc-0.30/sparc/strstr.S 2003-09-04 03:50:50.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/strstr.S 2006-09-07 12:24:13.099172500 +0200
+@@ -36,3 +36,7 @@ strstr:
+ .Lret:
+ retl
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/__testandset.S dietlibc-0.30-execstack/sparc/__testandset.S
+--- dietlibc-0.30/sparc/__testandset.S 2001-03-23 19:53:28.000000000 +0100
++++ dietlibc-0.30-execstack/sparc/__testandset.S 2006-09-07 12:24:13.099172500 +0200
+@@ -4,3 +4,7 @@
+ __testandset:
+ retl
+ ldstub [%o0], %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/udiv.S dietlibc-0.30-execstack/sparc/udiv.S
+--- dietlibc-0.30/sparc/udiv.S 2003-02-18 22:11:48.000000000 +0100
++++ dietlibc-0.30-execstack/sparc/udiv.S 2006-09-07 12:24:13.099172500 +0200
+@@ -359,3 +359,7 @@ ENTRY(.udiv)
+ END(.udiv)
+
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/umul.S dietlibc-0.30-execstack/sparc/umul.S
+--- dietlibc-0.30/sparc/umul.S 2003-02-18 22:11:48.000000000 +0100
++++ dietlibc-0.30-execstack/sparc/umul.S 2006-09-07 12:24:13.099172500 +0200
+@@ -166,3 +166,7 @@ ENTRY(.umul)
+
+ END(.umul)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/unified.S dietlibc-0.30-execstack/sparc/unified.S
+--- dietlibc-0.30/sparc/unified.S 2003-08-20 16:13:41.000000000 +0200
++++ dietlibc-0.30-execstack/sparc/unified.S 2006-09-07 12:24:13.099172500 +0200
+@@ -34,3 +34,7 @@ __unified_syscall_error_handler:
+ ret
+ restore %g0, -1, %o0
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc/urem.S dietlibc-0.30-execstack/sparc/urem.S
+--- dietlibc-0.30/sparc/urem.S 2003-02-18 22:11:48.000000000 +0100
++++ dietlibc-0.30-execstack/sparc/urem.S 2006-09-07 12:24:13.103172750 +0200
+@@ -358,3 +358,7 @@ ENTRY(.urem)
+
+ END(.urem)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/clone.S dietlibc-0.30-execstack/sparc64/clone.S
+--- dietlibc-0.30/sparc64/clone.S 2002-03-21 17:06:58.000000000 +0100
++++ dietlibc-0.30-execstack/sparc64/clone.S 2006-09-07 12:24:13.099172500 +0200
+@@ -42,3 +42,7 @@ __clone:
+ call _exit /* child returned */
+ nop
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/errlist.S dietlibc-0.30-execstack/sparc64/errlist.S
+--- dietlibc-0.30/sparc64/errlist.S 2005-05-20 14:18:04.000000000 +0200
++++ dietlibc-0.30-execstack/sparc64/errlist.S 2006-09-07 12:24:13.099172500 +0200
+@@ -278,3 +278,7 @@ sys_nerr:
+ .LC126: .string "Wrong medium type"
+
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/fork.S dietlibc-0.30-execstack/sparc64/fork.S
+--- dietlibc-0.30/sparc64/fork.S 2003-05-15 17:17:10.000000000 +0200
++++ dietlibc-0.30-execstack/sparc64/fork.S 2006-09-07 12:24:13.099172500 +0200
+@@ -16,3 +16,7 @@ __libc_fork:
+ 1: sethi %hi(__unified_syscall_error_handler), %g1
+ jmp %g1+%lo(__unified_syscall_error_handler)
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/__longjmp.S dietlibc-0.30-execstack/sparc64/__longjmp.S
+--- dietlibc-0.30/sparc64/__longjmp.S 2002-03-26 14:07:38.000000000 +0100
++++ dietlibc-0.30-execstack/sparc64/__longjmp.S 2006-09-07 12:24:13.099172500 +0200
+@@ -1 +1,5 @@
+ /* none ! all done in longjmp.S */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/longjmp.S dietlibc-0.30-execstack/sparc64/longjmp.S
+--- dietlibc-0.30/sparc64/longjmp.S 2002-09-16 13:17:02.000000000 +0200
++++ dietlibc-0.30-execstack/sparc64/longjmp.S 2006-09-07 12:24:13.099172500 +0200
+@@ -15,3 +15,7 @@ __libc_longjmp:
+ ld [ %o0+FLAG_SAVEMASK ], %o1 /* has setjmp saved the signalmask ? */
+ ta 0x6f /* setcontext / restore context */
+ .size __libc_longjmp,.-__libc_longjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/pipe.S dietlibc-0.30-execstack/sparc64/pipe.S
+--- dietlibc-0.30/sparc64/pipe.S 2003-05-15 17:17:10.000000000 +0200
++++ dietlibc-0.30-execstack/sparc64/pipe.S 2006-09-07 12:24:13.099172500 +0200
+@@ -16,3 +16,7 @@ pipe:
+ 1: sethi %hi(__unified_syscall_error_handler), %g1
+ jmp %g1+%lo(__unified_syscall_error_handler)
+ nop
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/setjmp.S dietlibc-0.30-execstack/sparc64/setjmp.S
+--- dietlibc-0.30/sparc64/setjmp.S 2002-03-26 14:07:38.000000000 +0100
++++ dietlibc-0.30-execstack/sparc64/setjmp.S 2006-09-07 12:24:13.099172500 +0200
+@@ -25,3 +25,7 @@ __sigsetjmp:
+ mov %g1, %o0 /* return value from longjmp or 0 */
+ .size __sigsetjmp,.-__sigsetjmp
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/sigjmp.S dietlibc-0.30-execstack/sparc64/sigjmp.S
+--- dietlibc-0.30/sparc64/sigjmp.S 2002-03-26 14:07:38.000000000 +0100
++++ dietlibc-0.30-execstack/sparc64/sigjmp.S 2006-09-07 12:24:13.099172500 +0200
+@@ -1 +1,5 @@
+ /* none ! all done in setjmp.S */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/start.S dietlibc-0.30-execstack/sparc64/start.S
+--- dietlibc-0.30/sparc64/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/sparc64/start.S 2006-09-07 12:24:13.099172500 +0200
+@@ -47,3 +47,7 @@ _start:
+
+ .size _start, .-_start
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/__testandset.S dietlibc-0.30-execstack/sparc64/__testandset.S
+--- dietlibc-0.30/sparc64/__testandset.S 2002-03-21 17:06:58.000000000 +0100
++++ dietlibc-0.30-execstack/sparc64/__testandset.S 2006-09-07 12:24:13.099172500 +0200
+@@ -4,3 +4,7 @@
+ __testandset:
+ retl
+ ldstub [%o0], %o0
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/sparc64/unified.S dietlibc-0.30-execstack/sparc64/unified.S
+--- dietlibc-0.30/sparc64/unified.S 2003-08-20 16:13:41.000000000 +0200
++++ dietlibc-0.30-execstack/sparc64/unified.S 2006-09-07 12:24:13.099172500 +0200
+@@ -35,3 +35,7 @@ __unified_syscall_error_handler:
+ ret
+ restore %g0, -1, %o0 /* return -1 */
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/access.S dietlibc-0.30-execstack/syscalls.s/access.S
+--- dietlibc-0.30/syscalls.s/access.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/access.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(access,access)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/add_key.S dietlibc-0.30-execstack/syscalls.s/add_key.S
+--- dietlibc-0.30/syscalls.s/add_key.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/add_key.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(add_key,add_key)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/adjtimex.S dietlibc-0.30-execstack/syscalls.s/adjtimex.S
+--- dietlibc-0.30/syscalls.s/adjtimex.S 2001-08-25 20:54:37.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/adjtimex.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(adjtimex,adjtimex)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/alarm.S dietlibc-0.30-execstack/syscalls.s/alarm.S
+--- dietlibc-0.30/syscalls.s/alarm.S 2003-10-10 15:37:34.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/alarm.S 2006-09-07 12:24:13.139175000 +0200
+@@ -4,3 +4,7 @@
+ syscall(alarm,alarm)
+ #endif
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/bdflush.S dietlibc-0.30-execstack/syscalls.s/bdflush.S
+--- dietlibc-0.30/syscalls.s/bdflush.S 2002-11-11 17:51:46.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/bdflush.S 2006-09-07 12:24:13.127174250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_bdflush
+ syscall(bdflush,bdflush)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/brk.S dietlibc-0.30-execstack/syscalls.s/brk.S
+--- dietlibc-0.30/syscalls.s/brk.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/brk.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(brk,__diet_brk)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/capget.S dietlibc-0.30-execstack/syscalls.s/capget.S
+--- dietlibc-0.30/syscalls.s/capget.S 2003-10-07 16:39:44.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/capget.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(capget,capget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/capset.S dietlibc-0.30-execstack/syscalls.s/capset.S
+--- dietlibc-0.30/syscalls.s/capset.S 2003-10-07 16:39:44.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/capset.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(capset,capset)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/chdir.S dietlibc-0.30-execstack/syscalls.s/chdir.S
+--- dietlibc-0.30/syscalls.s/chdir.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/chdir.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(chdir,chdir)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/chmod.S dietlibc-0.30-execstack/syscalls.s/chmod.S
+--- dietlibc-0.30/syscalls.s/chmod.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/chmod.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(chmod,chmod)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/chown32.S dietlibc-0.30-execstack/syscalls.s/chown32.S
+--- dietlibc-0.30/syscalls.s/chown32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/chown32.S 2006-09-07 12:24:13.127174250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_chown32
+ syscall_weak(chown32,chown32,__libc_chown32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/chown.S dietlibc-0.30-execstack/syscalls.s/chown.S
+--- dietlibc-0.30/syscalls.s/chown.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/chown.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(chown,chown)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/chroot.S dietlibc-0.30-execstack/syscalls.s/chroot.S
+--- dietlibc-0.30/syscalls.s/chroot.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/chroot.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(chroot,chroot)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/clock_getres.S dietlibc-0.30-execstack/syscalls.s/clock_getres.S
+--- dietlibc-0.30/syscalls.s/clock_getres.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/clock_getres.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(clock_getres,clock_getres)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/clock_gettime.S dietlibc-0.30-execstack/syscalls.s/clock_gettime.S
+--- dietlibc-0.30/syscalls.s/clock_gettime.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/clock_gettime.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(clock_gettime,clock_gettime)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/clock_nanosleep.S dietlibc-0.30-execstack/syscalls.s/clock_nanosleep.S
+--- dietlibc-0.30/syscalls.s/clock_nanosleep.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/clock_nanosleep.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(clock_nanosleep,clock_nanosleep)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/clock_settime.S dietlibc-0.30-execstack/syscalls.s/clock_settime.S
+--- dietlibc-0.30/syscalls.s/clock_settime.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/clock_settime.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(clock_settime,clock_settime)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/close.S dietlibc-0.30-execstack/syscalls.s/close.S
+--- dietlibc-0.30/syscalls.s/close.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/close.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(close,close,__libc_close)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/create_module.S dietlibc-0.30-execstack/syscalls.s/create_module.S
+--- dietlibc-0.30/syscalls.s/create_module.S 2001-09-28 21:44:22.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/create_module.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_create_module
+ syscall(create_module,create_module)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/delete_module.S dietlibc-0.30-execstack/syscalls.s/delete_module.S
+--- dietlibc-0.30/syscalls.s/delete_module.S 2001-09-28 21:44:22.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/delete_module.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_delete_module
+ syscall(delete_module,delete_module)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/dup2.S dietlibc-0.30-execstack/syscalls.s/dup2.S
+--- dietlibc-0.30/syscalls.s/dup2.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/dup2.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(dup2,dup2)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/dup.S dietlibc-0.30-execstack/syscalls.s/dup.S
+--- dietlibc-0.30/syscalls.s/dup.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/dup.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(dup,dup)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/environ.S dietlibc-0.30-execstack/syscalls.s/environ.S
+--- dietlibc-0.30/syscalls.s/environ.S 2004-09-28 02:01:30.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/environ.S 2006-09-07 12:24:13.135174750 +0200
+@@ -15,3 +15,7 @@ environ:
+ #endif
+ .size environ,.-environ
+ .size __environ,.-__environ
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/epoll_create.S dietlibc-0.30-execstack/syscalls.s/epoll_create.S
+--- dietlibc-0.30/syscalls.s/epoll_create.S 2003-04-12 17:19:01.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/epoll_create.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_epoll_create
+ syscall(epoll_create,epoll_create)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/epoll_ctl.S dietlibc-0.30-execstack/syscalls.s/epoll_ctl.S
+--- dietlibc-0.30/syscalls.s/epoll_ctl.S 2003-04-12 17:19:01.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/epoll_ctl.S 2006-09-07 12:24:13.151175750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_epoll_ctl
+ syscall(epoll_ctl,epoll_ctl)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/epoll_wait.S dietlibc-0.30-execstack/syscalls.s/epoll_wait.S
+--- dietlibc-0.30/syscalls.s/epoll_wait.S 2003-04-12 17:19:01.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/epoll_wait.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_epoll_wait
+ syscall(epoll_wait,epoll_wait)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/errlist.S dietlibc-0.30-execstack/syscalls.s/errlist.S
+--- dietlibc-0.30/syscalls.s/errlist.S 2005-05-15 01:35:39.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/errlist.S 2006-09-07 12:24:13.127174250 +0200
+@@ -301,3 +301,7 @@ sys_nerr:
+ .LC127: .asciz "Key has expired"
+ .LC128: .asciz "Key has been revoked"
+ .LC129: .asciz "Key was rejected by service"
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/errno.S dietlibc-0.30-execstack/syscalls.s/errno.S
+--- dietlibc-0.30/syscalls.s/errno.S 2002-11-15 16:39:17.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/errno.S 2006-09-07 12:24:13.127174250 +0200
+@@ -6,3 +6,7 @@
+ errno:
+ .long 0
+ .size errno,.-errno
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/execve.S dietlibc-0.30-execstack/syscalls.s/execve.S
+--- dietlibc-0.30/syscalls.s/execve.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/execve.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(execve,execve)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fadvise64_64.S dietlibc-0.30-execstack/syscalls.s/fadvise64_64.S
+--- dietlibc-0.30/syscalls.s/fadvise64_64.S 2005-10-08 23:11:32.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fadvise64_64.S 2006-09-07 12:24:13.163176500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_fadvise64_64
+ syscall(fadvise64_64,fadvise64_64)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fadvise64.S dietlibc-0.30-execstack/syscalls.s/fadvise64.S
+--- dietlibc-0.30/syscalls.s/fadvise64.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fadvise64.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(fadvise64,fadvise64)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fchdir.S dietlibc-0.30-execstack/syscalls.s/fchdir.S
+--- dietlibc-0.30/syscalls.s/fchdir.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fchdir.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(fchdir,fchdir)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fchmod.S dietlibc-0.30-execstack/syscalls.s/fchmod.S
+--- dietlibc-0.30/syscalls.s/fchmod.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fchmod.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(fchmod,fchmod)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fchown32.S dietlibc-0.30-execstack/syscalls.s/fchown32.S
+--- dietlibc-0.30/syscalls.s/fchown32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fchown32.S 2006-09-07 12:24:13.163176500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_fchown32
+ syscall_weak(fchown32,fchown32,__libc_fchown32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fchown.S dietlibc-0.30-execstack/syscalls.s/fchown.S
+--- dietlibc-0.30/syscalls.s/fchown.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fchown.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(fchown,fchown)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fcntl64.S dietlibc-0.30-execstack/syscalls.s/fcntl64.S
+--- dietlibc-0.30/syscalls.s/fcntl64.S 2005-08-05 19:58:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fcntl64.S 2006-09-07 12:24:13.163176500 +0200
+@@ -8,3 +8,7 @@ syscall(fcntl64,__dietlibc_fcntl64)
+ syscall(fcntl64,fcntl64)
+ #endif
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fcntl.S dietlibc-0.30-execstack/syscalls.s/fcntl.S
+--- dietlibc-0.30/syscalls.s/fcntl.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fcntl.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(fcntl,fcntl,__libc_fcntl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fdatasync.S dietlibc-0.30-execstack/syscalls.s/fdatasync.S
+--- dietlibc-0.30/syscalls.s/fdatasync.S 2002-02-21 01:33:37.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fdatasync.S 2006-09-07 12:24:13.167176750 +0200
+@@ -4,3 +4,7 @@
+ #define __NR_fdatasync __NR_fsync
+ #endif
+ syscall_weak(fdatasync,fdatasync,__libc_fdatasync)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fgetxattr.S dietlibc-0.30-execstack/syscalls.s/fgetxattr.S
+--- dietlibc-0.30/syscalls.s/fgetxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fgetxattr.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(fgetxattr,fgetxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/flistxattr.S dietlibc-0.30-execstack/syscalls.s/flistxattr.S
+--- dietlibc-0.30/syscalls.s/flistxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/flistxattr.S 2006-09-07 12:24:13.151175750 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(flistxattr,flistxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/flock.S dietlibc-0.30-execstack/syscalls.s/flock.S
+--- dietlibc-0.30/syscalls.s/flock.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/flock.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(flock,flock)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fork.S dietlibc-0.30-execstack/syscalls.s/fork.S
+--- dietlibc-0.30/syscalls.s/fork.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fork.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(fork,fork,__libc_fork)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fremovexattr.S dietlibc-0.30-execstack/syscalls.s/fremovexattr.S
+--- dietlibc-0.30/syscalls.s/fremovexattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fremovexattr.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(fremovexattr,fremovexattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fsetxattr.S dietlibc-0.30-execstack/syscalls.s/fsetxattr.S
+--- dietlibc-0.30/syscalls.s/fsetxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fsetxattr.S 2006-09-07 12:24:13.167176750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(fsetxattr,fsetxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fstat64.S dietlibc-0.30-execstack/syscalls.s/fstat64.S
+--- dietlibc-0.30/syscalls.s/fstat64.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fstat64.S 2006-09-07 12:24:13.131174500 +0200
+@@ -8,3 +8,7 @@ syscall(fstat64,__dietlibc_fstat64)
+ syscall(fstat64,fstat64)
+ #endif
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fstatfs64.S dietlibc-0.30-execstack/syscalls.s/fstatfs64.S
+--- dietlibc-0.30/syscalls.s/fstatfs64.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/fstatfs64.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_fstatfs64
+ syscall(fstatfs64,__dietlibc_fstatfs64)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fstatfs.S dietlibc-0.30-execstack/syscalls.s/fstatfs.S
+--- dietlibc-0.30/syscalls.s/fstatfs.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fstatfs.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(fstatfs,fstatfs)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fstat.S dietlibc-0.30-execstack/syscalls.s/fstat.S
+--- dietlibc-0.30/syscalls.s/fstat.S 2001-02-03 01:37:00.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fstat.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(fstat,fstat)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/fsync.S dietlibc-0.30-execstack/syscalls.s/fsync.S
+--- dietlibc-0.30/syscalls.s/fsync.S 2001-01-30 16:33:27.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/fsync.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(fsync,fsync,__libc_fsync)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/ftruncate64.S dietlibc-0.30-execstack/syscalls.s/ftruncate64.S
+--- dietlibc-0.30/syscalls.s/ftruncate64.S 2002-05-05 23:44:08.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/ftruncate64.S 2006-09-07 12:24:13.163176500 +0200
+@@ -8,3 +8,7 @@ syscall(ftruncate64,__dietlibc_ftruncate
+ syscall(ftruncate64,ftruncate64)
+ #endif
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/ftruncate.S dietlibc-0.30-execstack/syscalls.s/ftruncate.S
+--- dietlibc-0.30/syscalls.s/ftruncate.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/ftruncate.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(ftruncate,ftruncate)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/futex.S dietlibc-0.30-execstack/syscalls.s/futex.S
+--- dietlibc-0.30/syscalls.s/futex.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/futex.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(futex,futex)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getcwd.S dietlibc-0.30-execstack/syscalls.s/getcwd.S
+--- dietlibc-0.30/syscalls.s/getcwd.S 2001-05-09 03:16:05.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getcwd.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getcwd,__syscall_getcwd)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getdents64.S dietlibc-0.30-execstack/syscalls.s/getdents64.S
+--- dietlibc-0.30/syscalls.s/getdents64.S 2002-11-08 18:07:09.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getdents64.S 2006-09-07 12:24:13.127174250 +0200
+@@ -4,3 +4,7 @@
+ #ifdef __NR_getdents64
+ syscall(getdents64,getdents64)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getdents.S dietlibc-0.30-execstack/syscalls.s/getdents.S
+--- dietlibc-0.30/syscalls.s/getdents.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getdents.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getdents,getdents)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getegid32.S dietlibc-0.30-execstack/syscalls.s/getegid32.S
+--- dietlibc-0.30/syscalls.s/getegid32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getegid32.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_getegid32
+ syscall_weak(getegid32,getegid32,__libc_getegid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getegid.S dietlibc-0.30-execstack/syscalls.s/getegid.S
+--- dietlibc-0.30/syscalls.s/getegid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getegid.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getegid,getegid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/geteuid32.S dietlibc-0.30-execstack/syscalls.s/geteuid32.S
+--- dietlibc-0.30/syscalls.s/geteuid32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/geteuid32.S 2006-09-07 12:24:13.127174250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_geteuid32
+ syscall_weak(geteuid32,geteuid32,__libc_geteuid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/geteuid.S dietlibc-0.30-execstack/syscalls.s/geteuid.S
+--- dietlibc-0.30/syscalls.s/geteuid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/geteuid.S 2006-09-07 12:24:13.151175750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(geteuid,geteuid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getgid32.S dietlibc-0.30-execstack/syscalls.s/getgid32.S
+--- dietlibc-0.30/syscalls.s/getgid32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getgid32.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_getgid32
+ syscall_weak(getgid32,getgid32,__libc_getgid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getgid.S dietlibc-0.30-execstack/syscalls.s/getgid.S
+--- dietlibc-0.30/syscalls.s/getgid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getgid.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getgid,getgid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getgroups32.S dietlibc-0.30-execstack/syscalls.s/getgroups32.S
+--- dietlibc-0.30/syscalls.s/getgroups32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getgroups32.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_getgroups32
+ syscall_weak(getgroups32,getgroups32,__libc_getgroups32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getgroups.S dietlibc-0.30-execstack/syscalls.s/getgroups.S
+--- dietlibc-0.30/syscalls.s/getgroups.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getgroups.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getgroups,getgroups)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getitimer.S dietlibc-0.30-execstack/syscalls.s/getitimer.S
+--- dietlibc-0.30/syscalls.s/getitimer.S 2001-03-14 16:22:21.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getitimer.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getitimer,getitimer)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/get_mempolicy.S dietlibc-0.30-execstack/syscalls.s/get_mempolicy.S
+--- dietlibc-0.30/syscalls.s/get_mempolicy.S 2005-10-08 23:22:09.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/get_mempolicy.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_get_mempolicy
+ syscall(get_mempolicy,get_mempolicy)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/__getpagesize.S dietlibc-0.30-execstack/syscalls.s/__getpagesize.S
+--- dietlibc-0.30/syscalls.s/__getpagesize.S 2001-04-19 19:46:38.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/__getpagesize.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_getpagesize
+ syscall(getpagesize,getpagesize)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getpgid.S dietlibc-0.30-execstack/syscalls.s/getpgid.S
+--- dietlibc-0.30/syscalls.s/getpgid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getpgid.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getpgid,getpgid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getpid.S dietlibc-0.30-execstack/syscalls.s/getpid.S
+--- dietlibc-0.30/syscalls.s/getpid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getpid.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getpid,getpid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getppid.S dietlibc-0.30-execstack/syscalls.s/getppid.S
+--- dietlibc-0.30/syscalls.s/getppid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getppid.S 2006-09-07 12:24:13.151175750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getppid,getppid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getpriority.S dietlibc-0.30-execstack/syscalls.s/getpriority.S
+--- dietlibc-0.30/syscalls.s/getpriority.S 2001-01-25 13:48:03.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getpriority.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getpriority,getpriority)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getresgid32.S dietlibc-0.30-execstack/syscalls.s/getresgid32.S
+--- dietlibc-0.30/syscalls.s/getresgid32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getresgid32.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_getresgid32
+ syscall_weak(getresgid32,getresgid32,__libc_getresgid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getresgid.S dietlibc-0.30-execstack/syscalls.s/getresgid.S
+--- dietlibc-0.30/syscalls.s/getresgid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getresgid.S 2006-09-07 12:24:13.163176500 +0200
+@@ -5,3 +5,7 @@
+ syscall(getresgid,getresgid)
+
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getresuid.S dietlibc-0.30-execstack/syscalls.s/getresuid.S
+--- dietlibc-0.30/syscalls.s/getresuid.S 2001-05-31 21:35:04.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getresuid.S 2006-09-07 12:24:13.127174250 +0200
+@@ -5,3 +5,7 @@
+ syscall(getresuid,getresuid)
+
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getrlimit.S dietlibc-0.30-execstack/syscalls.s/getrlimit.S
+--- dietlibc-0.30/syscalls.s/getrlimit.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getrlimit.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getrlimit,getrlimit)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getrusage.S dietlibc-0.30-execstack/syscalls.s/getrusage.S
+--- dietlibc-0.30/syscalls.s/getrusage.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getrusage.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getrusage,getrusage)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getsid.S dietlibc-0.30-execstack/syscalls.s/getsid.S
+--- dietlibc-0.30/syscalls.s/getsid.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getsid.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsid,getsid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/get_thread_area.S dietlibc-0.30-execstack/syscalls.s/get_thread_area.S
+--- dietlibc-0.30/syscalls.s/get_thread_area.S 2005-10-08 23:22:09.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/get_thread_area.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_get_thread_area
+ syscall(get_thread_area,get_thread_area)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/gettid.S dietlibc-0.30-execstack/syscalls.s/gettid.S
+--- dietlibc-0.30/syscalls.s/gettid.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/gettid.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(gettid,gettid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/gettimeofday.S dietlibc-0.30-execstack/syscalls.s/gettimeofday.S
+--- dietlibc-0.30/syscalls.s/gettimeofday.S 2001-01-09 18:57:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/gettimeofday.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(gettimeofday,gettimeofday)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getuid32.S dietlibc-0.30-execstack/syscalls.s/getuid32.S
+--- dietlibc-0.30/syscalls.s/getuid32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getuid32.S 2006-09-07 12:24:13.127174250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_getuid32
+ syscall_weak(getuid32,getuid32,__libc_getuid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getuid.S dietlibc-0.30-execstack/syscalls.s/getuid.S
+--- dietlibc-0.30/syscalls.s/getuid.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/getuid.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getuid,getuid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/getxattr.S dietlibc-0.30-execstack/syscalls.s/getxattr.S
+--- dietlibc-0.30/syscalls.s/getxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/getxattr.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(getxattr,getxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/__guard.S dietlibc-0.30-execstack/syscalls.s/__guard.S
+--- dietlibc-0.30/syscalls.s/__guard.S 2006-04-07 17:33:20.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/__guard.S 2006-09-07 12:24:13.155176000 +0200
+@@ -7,3 +7,7 @@ __guard:
+ __stack_chk_guard:
+ .long 0xaff00
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/init_module.S dietlibc-0.30-execstack/syscalls.s/init_module.S
+--- dietlibc-0.30/syscalls.s/init_module.S 2001-09-28 21:44:22.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/init_module.S 2006-09-07 12:24:13.163176500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_init_module
+ syscall(init_module,init_module)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/inotify_add_watch.S dietlibc-0.30-execstack/syscalls.s/inotify_add_watch.S
+--- dietlibc-0.30/syscalls.s/inotify_add_watch.S 2005-10-08 23:39:53.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/inotify_add_watch.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_inotify_add_watch
+ syscall(inotify_add_watch,inotify_add_watch)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/inotify_init.S dietlibc-0.30-execstack/syscalls.s/inotify_init.S
+--- dietlibc-0.30/syscalls.s/inotify_init.S 2005-10-08 23:39:53.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/inotify_init.S 2006-09-07 12:24:13.135174750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_inotify_init
+ syscall(inotify_init,inotify_init)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/inotify_rm_watch.S dietlibc-0.30-execstack/syscalls.s/inotify_rm_watch.S
+--- dietlibc-0.30/syscalls.s/inotify_rm_watch.S 2005-10-08 23:39:53.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/inotify_rm_watch.S 2006-09-07 12:24:13.127174250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_inotify_rm_watch
+ syscall(inotify_rm_watch,inotify_rm_watch)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/io_cancel.S dietlibc-0.30-execstack/syscalls.s/io_cancel.S
+--- dietlibc-0.30/syscalls.s/io_cancel.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/io_cancel.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(io_cancel,io_cancel)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/ioctl.S dietlibc-0.30-execstack/syscalls.s/ioctl.S
+--- dietlibc-0.30/syscalls.s/ioctl.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/ioctl.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(ioctl,ioctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/io_destroy.S dietlibc-0.30-execstack/syscalls.s/io_destroy.S
+--- dietlibc-0.30/syscalls.s/io_destroy.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/io_destroy.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(io_destroy,io_destroy)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/io_getevents.S dietlibc-0.30-execstack/syscalls.s/io_getevents.S
+--- dietlibc-0.30/syscalls.s/io_getevents.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/io_getevents.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(io_getevents,io_getevents)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/ioperm.S dietlibc-0.30-execstack/syscalls.s/ioperm.S
+--- dietlibc-0.30/syscalls.s/ioperm.S 2001-05-16 01:56:35.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/ioperm.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_ioperm
+ syscall(ioperm,ioperm)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/iopl.S dietlibc-0.30-execstack/syscalls.s/iopl.S
+--- dietlibc-0.30/syscalls.s/iopl.S 2001-04-26 12:30:30.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/iopl.S 2006-09-07 12:24:13.163176500 +0200
+@@ -4,3 +4,7 @@
+ #ifdef __NR_iopl
+ syscall(iopl,iopl)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/io_setup.S dietlibc-0.30-execstack/syscalls.s/io_setup.S
+--- dietlibc-0.30/syscalls.s/io_setup.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/io_setup.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(io_setup,io_setup)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/io_submit.S dietlibc-0.30-execstack/syscalls.s/io_submit.S
+--- dietlibc-0.30/syscalls.s/io_submit.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/io_submit.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(io_submit,io_submit)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/ipc.S dietlibc-0.30-execstack/syscalls.s/ipc.S
+--- dietlibc-0.30/syscalls.s/ipc.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/ipc.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_ipc
+ syscall(ipc,__ipc)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/keyctl.S dietlibc-0.30-execstack/syscalls.s/keyctl.S
+--- dietlibc-0.30/syscalls.s/keyctl.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/keyctl.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(keyctl,keyctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/kill.S dietlibc-0.30-execstack/syscalls.s/kill.S
+--- dietlibc-0.30/syscalls.s/kill.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/kill.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(kill,kill)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lchown32.S dietlibc-0.30-execstack/syscalls.s/lchown32.S
+--- dietlibc-0.30/syscalls.s/lchown32.S 2001-09-04 01:35:15.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/lchown32.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_lchown32
+ syscall_weak(lchown32,lchown32,__libc_lchown32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lchown.S dietlibc-0.30-execstack/syscalls.s/lchown.S
+--- dietlibc-0.30/syscalls.s/lchown.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/lchown.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(lchown,lchown)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lgetxattr.S dietlibc-0.30-execstack/syscalls.s/lgetxattr.S
+--- dietlibc-0.30/syscalls.s/lgetxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/lgetxattr.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(lgetxattr,lgetxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/link.S dietlibc-0.30-execstack/syscalls.s/link.S
+--- dietlibc-0.30/syscalls.s/link.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/link.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(link,link)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/listxattr.S dietlibc-0.30-execstack/syscalls.s/listxattr.S
+--- dietlibc-0.30/syscalls.s/listxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/listxattr.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(listxattr,listxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/llistxattr.S dietlibc-0.30-execstack/syscalls.s/llistxattr.S
+--- dietlibc-0.30/syscalls.s/llistxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/llistxattr.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(llistxattr,llistxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/_llseek.S dietlibc-0.30-execstack/syscalls.s/_llseek.S
+--- dietlibc-0.30/syscalls.s/_llseek.S 2004-04-29 16:37:25.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/_llseek.S 2006-09-07 12:24:13.139175000 +0200
+@@ -6,3 +6,7 @@
+ llseek:
+ syscall(_llseek,_llseek)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lremovexattr.S dietlibc-0.30-execstack/syscalls.s/lremovexattr.S
+--- dietlibc-0.30/syscalls.s/lremovexattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/lremovexattr.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(lremovexattr,lremovexattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lseek.S dietlibc-0.30-execstack/syscalls.s/lseek.S
+--- dietlibc-0.30/syscalls.s/lseek.S 2001-01-30 16:33:27.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/lseek.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(lseek,lseek,__libc_lseek)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lsetxattr.S dietlibc-0.30-execstack/syscalls.s/lsetxattr.S
+--- dietlibc-0.30/syscalls.s/lsetxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/lsetxattr.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(lsetxattr,lsetxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lstat64.S dietlibc-0.30-execstack/syscalls.s/lstat64.S
+--- dietlibc-0.30/syscalls.s/lstat64.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/lstat64.S 2006-09-07 12:24:13.155176000 +0200
+@@ -8,3 +8,7 @@ syscall(lstat64,__dietlibc_lstat64)
+ syscall(lstat64,lstat64)
+ #endif
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/lstat.S dietlibc-0.30-execstack/syscalls.s/lstat.S
+--- dietlibc-0.30/syscalls.s/lstat.S 2001-02-03 01:37:00.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/lstat.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(lstat,lstat)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/madvise.S dietlibc-0.30-execstack/syscalls.s/madvise.S
+--- dietlibc-0.30/syscalls.s/madvise.S 2001-10-22 22:20:53.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/madvise.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(madvise,madvise)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mbind.S dietlibc-0.30-execstack/syscalls.s/mbind.S
+--- dietlibc-0.30/syscalls.s/mbind.S 2005-10-08 23:22:09.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mbind.S 2006-09-07 12:24:13.163176500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_mbind
+ syscall(mbind,mbind)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mincore.S dietlibc-0.30-execstack/syscalls.s/mincore.S
+--- dietlibc-0.30/syscalls.s/mincore.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mincore.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mincore,mincore)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mkdir.S dietlibc-0.30-execstack/syscalls.s/mkdir.S
+--- dietlibc-0.30/syscalls.s/mkdir.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/mkdir.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mkdir,mkdir)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mknod.S dietlibc-0.30-execstack/syscalls.s/mknod.S
+--- dietlibc-0.30/syscalls.s/mknod.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/mknod.S 2006-09-07 12:24:13.167176750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mknod,mknod)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mlockall.S dietlibc-0.30-execstack/syscalls.s/mlockall.S
+--- dietlibc-0.30/syscalls.s/mlockall.S 2001-05-02 23:06:24.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mlockall.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mlockall,mlockall)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mlock.S dietlibc-0.30-execstack/syscalls.s/mlock.S
+--- dietlibc-0.30/syscalls.s/mlock.S 2001-05-31 19:13:09.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mlock.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mlock,mlock)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mmap2.S dietlibc-0.30-execstack/syscalls.s/mmap2.S
+--- dietlibc-0.30/syscalls.s/mmap2.S 2002-11-26 01:41:46.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/mmap2.S 2006-09-07 12:24:13.163176500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_mmap2
+ syscall(mmap2,__mmap2)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mmap.S dietlibc-0.30-execstack/syscalls.s/mmap.S
+--- dietlibc-0.30/syscalls.s/mmap.S 2003-05-15 17:17:10.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mmap.S 2006-09-07 12:24:13.167176750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mmap,mmap)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mount.S dietlibc-0.30-execstack/syscalls.s/mount.S
+--- dietlibc-0.30/syscalls.s/mount.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/mount.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mount,mount)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mprotect.S dietlibc-0.30-execstack/syscalls.s/mprotect.S
+--- dietlibc-0.30/syscalls.s/mprotect.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/mprotect.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mprotect,mprotect)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mq_getsetattr.S dietlibc-0.30-execstack/syscalls.s/mq_getsetattr.S
+--- dietlibc-0.30/syscalls.s/mq_getsetattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mq_getsetattr.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mq_getsetattr,mq_setattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mq_notify.S dietlibc-0.30-execstack/syscalls.s/mq_notify.S
+--- dietlibc-0.30/syscalls.s/mq_notify.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mq_notify.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mq_notify,mq_notify)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mq_open.S dietlibc-0.30-execstack/syscalls.s/mq_open.S
+--- dietlibc-0.30/syscalls.s/mq_open.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mq_open.S 2006-09-07 12:24:13.151175750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mq_open,mq_open)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mq_timedreceive.S dietlibc-0.30-execstack/syscalls.s/mq_timedreceive.S
+--- dietlibc-0.30/syscalls.s/mq_timedreceive.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mq_timedreceive.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mq_timedreceive,mq_timedreceive)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mq_timedsend.S dietlibc-0.30-execstack/syscalls.s/mq_timedsend.S
+--- dietlibc-0.30/syscalls.s/mq_timedsend.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mq_timedsend.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mq_timedsend,mq_timedsend)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mq_unlink.S dietlibc-0.30-execstack/syscalls.s/mq_unlink.S
+--- dietlibc-0.30/syscalls.s/mq_unlink.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/mq_unlink.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mq_unlink,mq_unlink)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/mremap.S dietlibc-0.30-execstack/syscalls.s/mremap.S
+--- dietlibc-0.30/syscalls.s/mremap.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/mremap.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(mremap,mremap)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/msync.S dietlibc-0.30-execstack/syscalls.s/msync.S
+--- dietlibc-0.30/syscalls.s/msync.S 2003-02-12 16:56:06.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/msync.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(msync,msync,__libc_msync)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/munlockall.S dietlibc-0.30-execstack/syscalls.s/munlockall.S
+--- dietlibc-0.30/syscalls.s/munlockall.S 2001-05-02 23:06:24.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/munlockall.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(munlockall,munlockall)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/munlock.S dietlibc-0.30-execstack/syscalls.s/munlock.S
+--- dietlibc-0.30/syscalls.s/munlock.S 2002-08-14 15:52:20.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/munlock.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(munlock,munlock)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/munmap.S dietlibc-0.30-execstack/syscalls.s/munmap.S
+--- dietlibc-0.30/syscalls.s/munmap.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/munmap.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(munmap,munmap)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/nanosleep.S dietlibc-0.30-execstack/syscalls.s/nanosleep.S
+--- dietlibc-0.30/syscalls.s/nanosleep.S 2001-01-30 16:33:27.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/nanosleep.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(nanosleep,nanosleep,__libc_nanosleep)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/nice.S dietlibc-0.30-execstack/syscalls.s/nice.S
+--- dietlibc-0.30/syscalls.s/nice.S 2002-11-09 19:23:19.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/nice.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_nice
+ syscall(nice,nice)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/n_sigaction.S dietlibc-0.30-execstack/syscalls.s/n_sigaction.S
+--- dietlibc-0.30/syscalls.s/n_sigaction.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/n_sigaction.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_sigaction
+ syscall_weak(sigaction,__old_sigaction,__n_sigaction)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/n_sigpending.S dietlibc-0.30-execstack/syscalls.s/n_sigpending.S
+--- dietlibc-0.30/syscalls.s/n_sigpending.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/n_sigpending.S 2006-09-07 12:24:13.127174250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_sigpending
+ syscall_weak(sigpending,__old_sigpending,__n_sigpending)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/n_sigprocmask.S dietlibc-0.30-execstack/syscalls.s/n_sigprocmask.S
+--- dietlibc-0.30/syscalls.s/n_sigprocmask.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/n_sigprocmask.S 2006-09-07 12:24:13.163176500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_sigprocmask
+ syscall_weak(sigprocmask,__old_sigprocmask,__n_sigprocmask)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/n_sigsuspend.S dietlibc-0.30-execstack/syscalls.s/n_sigsuspend.S
+--- dietlibc-0.30/syscalls.s/n_sigsuspend.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/n_sigsuspend.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_sigsuspend
+ syscall_weak(sigsuspend,__old_sigsuspend,__n_sigsuspend)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/open.S dietlibc-0.30-execstack/syscalls.s/open.S
+--- dietlibc-0.30/syscalls.s/open.S 2001-01-30 16:33:27.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/open.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(open,open,__libc_open)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/pause.S dietlibc-0.30-execstack/syscalls.s/pause.S
+--- dietlibc-0.30/syscalls.s/pause.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/pause.S 2006-09-07 12:24:13.163176500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_pause
+ syscall_weak(pause,pause,__libc_pause)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/personality.S dietlibc-0.30-execstack/syscalls.s/personality.S
+--- dietlibc-0.30/syscalls.s/personality.S 2001-04-22 16:30:13.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/personality.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_personality
+ syscall(personality,personality)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/pipe.S dietlibc-0.30-execstack/syscalls.s/pipe.S
+--- dietlibc-0.30/syscalls.s/pipe.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/pipe.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(pipe,pipe)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/pivot_root.S dietlibc-0.30-execstack/syscalls.s/pivot_root.S
+--- dietlibc-0.30/syscalls.s/pivot_root.S 2001-08-23 20:33:44.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/pivot_root.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(pivot_root,pivot_root)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/poll.S dietlibc-0.30-execstack/syscalls.s/poll.S
+--- dietlibc-0.30/syscalls.s/poll.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/poll.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(poll,poll)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/prctl.S dietlibc-0.30-execstack/syscalls.s/prctl.S
+--- dietlibc-0.30/syscalls.s/prctl.S 2001-11-13 17:19:36.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/prctl.S 2006-09-07 12:24:13.135174750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_prctl
+ syscall(prctl,prctl)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/__pread.S dietlibc-0.30-execstack/syscalls.s/__pread.S
+--- dietlibc-0.30/syscalls.s/__pread.S 2004-05-10 23:05:07.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/__pread.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(pread,pread64,__libc_pread64)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/ptrace.S dietlibc-0.30-execstack/syscalls.s/ptrace.S
+--- dietlibc-0.30/syscalls.s/ptrace.S 2002-02-23 16:57:31.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/ptrace.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(ptrace,__diet_ptrace)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/__pwrite.S dietlibc-0.30-execstack/syscalls.s/__pwrite.S
+--- dietlibc-0.30/syscalls.s/__pwrite.S 2004-05-10 23:05:07.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/__pwrite.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(pwrite,pwrite64,__libc_pwrite64)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/query_module.S dietlibc-0.30-execstack/syscalls.s/query_module.S
+--- dietlibc-0.30/syscalls.s/query_module.S 2001-05-06 02:34:27.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/query_module.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_query_module
+ syscall(query_module,query_module)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/quotactl.S dietlibc-0.30-execstack/syscalls.s/quotactl.S
+--- dietlibc-0.30/syscalls.s/quotactl.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/quotactl.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(quotactl,quotactl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/readahead.S dietlibc-0.30-execstack/syscalls.s/readahead.S
+--- dietlibc-0.30/syscalls.s/readahead.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/readahead.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(readahead,readahead)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/readlink.S dietlibc-0.30-execstack/syscalls.s/readlink.S
+--- dietlibc-0.30/syscalls.s/readlink.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/readlink.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(readlink,readlink)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/read.S dietlibc-0.30-execstack/syscalls.s/read.S
+--- dietlibc-0.30/syscalls.s/read.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/read.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(read,read,__libc_read)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/readv.S dietlibc-0.30-execstack/syscalls.s/readv.S
+--- dietlibc-0.30/syscalls.s/readv.S 2001-01-11 16:58:42.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/readv.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(readv,readv)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/__reboot.S dietlibc-0.30-execstack/syscalls.s/__reboot.S
+--- dietlibc-0.30/syscalls.s/__reboot.S 2001-02-05 18:49:41.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/__reboot.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(reboot,__reboot)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/remap_file_pages.S dietlibc-0.30-execstack/syscalls.s/remap_file_pages.S
+--- dietlibc-0.30/syscalls.s/remap_file_pages.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/remap_file_pages.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(remap_file_pages,remap_file_pages)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/removexattr.S dietlibc-0.30-execstack/syscalls.s/removexattr.S
+--- dietlibc-0.30/syscalls.s/removexattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/removexattr.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(removexattr,removexattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rename.S dietlibc-0.30-execstack/syscalls.s/rename.S
+--- dietlibc-0.30/syscalls.s/rename.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/rename.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rename,rename)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/request_key.S dietlibc-0.30-execstack/syscalls.s/request_key.S
+--- dietlibc-0.30/syscalls.s/request_key.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/request_key.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(request_key,request_key)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rmdir.S dietlibc-0.30-execstack/syscalls.s/rmdir.S
+--- dietlibc-0.30/syscalls.s/rmdir.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/rmdir.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rmdir,rmdir)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rt_sigaction.S dietlibc-0.30-execstack/syscalls.s/rt_sigaction.S
+--- dietlibc-0.30/syscalls.s/rt_sigaction.S 2001-07-19 22:33:23.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/rt_sigaction.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rt_sigaction,__rt_sigaction)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rt_sigpending.S dietlibc-0.30-execstack/syscalls.s/rt_sigpending.S
+--- dietlibc-0.30/syscalls.s/rt_sigpending.S 2001-07-19 22:33:23.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/rt_sigpending.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rt_sigpending,__rt_sigpending)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rt_sigprocmask.S dietlibc-0.30-execstack/syscalls.s/rt_sigprocmask.S
+--- dietlibc-0.30/syscalls.s/rt_sigprocmask.S 2001-07-19 22:33:23.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/rt_sigprocmask.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rt_sigprocmask,__rt_sigprocmask)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rt_sigqueueinfo.S dietlibc-0.30-execstack/syscalls.s/rt_sigqueueinfo.S
+--- dietlibc-0.30/syscalls.s/rt_sigqueueinfo.S 2001-07-19 22:33:23.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/rt_sigqueueinfo.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rt_sigqueueinfo,__rt_sigqueueinfo)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rt_sigreturn.S dietlibc-0.30-execstack/syscalls.s/rt_sigreturn.S
+--- dietlibc-0.30/syscalls.s/rt_sigreturn.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/rt_sigreturn.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rt_sigreturn,rt_sigreturn)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rt_sigsuspend.S dietlibc-0.30-execstack/syscalls.s/rt_sigsuspend.S
+--- dietlibc-0.30/syscalls.s/rt_sigsuspend.S 2001-07-19 22:33:23.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/rt_sigsuspend.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rt_sigsuspend,__rt_sigsuspend)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/rt_sigtimedwait.S dietlibc-0.30-execstack/syscalls.s/rt_sigtimedwait.S
+--- dietlibc-0.30/syscalls.s/rt_sigtimedwait.S 2001-07-19 22:33:23.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/rt_sigtimedwait.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(rt_sigtimedwait,__rt_sigtimedwait)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_getparam.S dietlibc-0.30-execstack/syscalls.s/sched_getparam.S
+--- dietlibc-0.30/syscalls.s/sched_getparam.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_getparam.S 2006-09-07 12:24:13.151175750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_getparam,sched_getparam)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_get_priority_max.S dietlibc-0.30-execstack/syscalls.s/sched_get_priority_max.S
+--- dietlibc-0.30/syscalls.s/sched_get_priority_max.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_get_priority_max.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_get_priority_max,sched_get_priority_max)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_get_priority_min.S dietlibc-0.30-execstack/syscalls.s/sched_get_priority_min.S
+--- dietlibc-0.30/syscalls.s/sched_get_priority_min.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_get_priority_min.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_get_priority_min,sched_get_priority_min)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_getscheduler.S dietlibc-0.30-execstack/syscalls.s/sched_getscheduler.S
+--- dietlibc-0.30/syscalls.s/sched_getscheduler.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_getscheduler.S 2006-09-07 12:24:13.151175750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_getscheduler,sched_getscheduler)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_rr_get_interval.S dietlibc-0.30-execstack/syscalls.s/sched_rr_get_interval.S
+--- dietlibc-0.30/syscalls.s/sched_rr_get_interval.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_rr_get_interval.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_rr_get_interval,sched_rr_get_interval)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_setparam.S dietlibc-0.30-execstack/syscalls.s/sched_setparam.S
+--- dietlibc-0.30/syscalls.s/sched_setparam.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_setparam.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_setparam,sched_setparam)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_setscheduler.S dietlibc-0.30-execstack/syscalls.s/sched_setscheduler.S
+--- dietlibc-0.30/syscalls.s/sched_setscheduler.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_setscheduler.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_setscheduler,sched_setscheduler)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sched_yield.S dietlibc-0.30-execstack/syscalls.s/sched_yield.S
+--- dietlibc-0.30/syscalls.s/sched_yield.S 2001-01-25 19:13:44.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sched_yield.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sched_yield,sched_yield)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/select.S dietlibc-0.30-execstack/syscalls.s/select.S
+--- dietlibc-0.30/syscalls.s/select.S 2005-03-23 20:57:53.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/select.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_select
+ syscall(select,select)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sendfile64.S dietlibc-0.30-execstack/syscalls.s/sendfile64.S
+--- dietlibc-0.30/syscalls.s/sendfile64.S 2003-05-19 13:35:46.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/sendfile64.S 2006-09-07 12:24:13.143175250 +0200
+@@ -11,3 +11,7 @@ syscall_weak(sendfile64,sendfile64,__lib
+
+ link_warning(sendfile64,"sendfile64 is not portable")
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sendfile.S dietlibc-0.30-execstack/syscalls.s/sendfile.S
+--- dietlibc-0.30/syscalls.s/sendfile.S 2002-11-26 00:37:19.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sendfile.S 2006-09-07 12:24:13.139175000 +0200
+@@ -4,3 +4,7 @@
+ syscall_weak(sendfile,sendfile,__libc_sendfile)
+
+ link_warning(sendfile,"sendfile is not portable")
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setdomainname.S dietlibc-0.30-execstack/syscalls.s/setdomainname.S
+--- dietlibc-0.30/syscalls.s/setdomainname.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setdomainname.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setdomainname,setdomainname)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setfsgid32.S dietlibc-0.30-execstack/syscalls.s/setfsgid32.S
+--- dietlibc-0.30/syscalls.s/setfsgid32.S 2001-09-04 01:35:16.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setfsgid32.S 2006-09-07 12:24:13.135174750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_setfsgid32
+ syscall_weak(setfsgid32,setfsgid32,__libc_setfsgid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setfsgid.S dietlibc-0.30-execstack/syscalls.s/setfsgid.S
+--- dietlibc-0.30/syscalls.s/setfsgid.S 2001-05-18 16:19:22.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setfsgid.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setfsgid,setfsgid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setfsuid32.S dietlibc-0.30-execstack/syscalls.s/setfsuid32.S
+--- dietlibc-0.30/syscalls.s/setfsuid32.S 2001-09-04 01:35:16.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setfsuid32.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_setfsuid32
+ syscall_weak(setfsuid32,setfsuid32,__libc_setfsuid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setfsuid.S dietlibc-0.30-execstack/syscalls.s/setfsuid.S
+--- dietlibc-0.30/syscalls.s/setfsuid.S 2001-05-18 16:19:22.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setfsuid.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setfsuid,setfsuid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setgid32.S dietlibc-0.30-execstack/syscalls.s/setgid32.S
+--- dietlibc-0.30/syscalls.s/setgid32.S 2001-09-04 01:35:16.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setgid32.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_setgid32
+ syscall_weak(setgid32,setgid32,__libc_setgid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setgid.S dietlibc-0.30-execstack/syscalls.s/setgid.S
+--- dietlibc-0.30/syscalls.s/setgid.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setgid.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setgid,setgid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setgroups.S dietlibc-0.30-execstack/syscalls.s/setgroups.S
+--- dietlibc-0.30/syscalls.s/setgroups.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setgroups.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setgroups,setgroups)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sethostname.S dietlibc-0.30-execstack/syscalls.s/sethostname.S
+--- dietlibc-0.30/syscalls.s/sethostname.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sethostname.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sethostname,sethostname)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setitimer.S dietlibc-0.30-execstack/syscalls.s/setitimer.S
+--- dietlibc-0.30/syscalls.s/setitimer.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setitimer.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setitimer,setitimer)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/set_mempolicy.S dietlibc-0.30-execstack/syscalls.s/set_mempolicy.S
+--- dietlibc-0.30/syscalls.s/set_mempolicy.S 2005-10-08 23:22:09.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/set_mempolicy.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_set_mempolicy
+ syscall(set_mempolicy,set_mempolicy)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setpgid.S dietlibc-0.30-execstack/syscalls.s/setpgid.S
+--- dietlibc-0.30/syscalls.s/setpgid.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setpgid.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setpgid,setpgid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setpriority.S dietlibc-0.30-execstack/syscalls.s/setpriority.S
+--- dietlibc-0.30/syscalls.s/setpriority.S 2001-01-25 13:48:03.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setpriority.S 2006-09-07 12:24:13.167176750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setpriority,setpriority)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setregid32.S dietlibc-0.30-execstack/syscalls.s/setregid32.S
+--- dietlibc-0.30/syscalls.s/setregid32.S 2001-09-04 01:35:16.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setregid32.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_setregid32
+ syscall_weak(setregid32,setregid32,__libc_setregid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setregid.S dietlibc-0.30-execstack/syscalls.s/setregid.S
+--- dietlibc-0.30/syscalls.s/setregid.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setregid.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setregid,setregid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setresgid32.S dietlibc-0.30-execstack/syscalls.s/setresgid32.S
+--- dietlibc-0.30/syscalls.s/setresgid32.S 2001-09-04 01:35:16.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setresgid32.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_setresgid32
+ syscall_weak(setresgid32,setresgid32,__libc_setresgid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setresgid.S dietlibc-0.30-execstack/syscalls.s/setresgid.S
+--- dietlibc-0.30/syscalls.s/setresgid.S 2001-05-31 21:32:50.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setresgid.S 2006-09-07 12:24:13.135174750 +0200
+@@ -5,3 +5,7 @@
+ syscall(setresgid,setresgid)
+
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setresuid.S dietlibc-0.30-execstack/syscalls.s/setresuid.S
+--- dietlibc-0.30/syscalls.s/setresuid.S 2001-05-31 21:32:50.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setresuid.S 2006-09-07 12:24:13.151175750 +0200
+@@ -5,3 +5,7 @@
+ syscall(setresuid,setresuid)
+
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setreuid32.S dietlibc-0.30-execstack/syscalls.s/setreuid32.S
+--- dietlibc-0.30/syscalls.s/setreuid32.S 2001-09-04 01:35:16.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setreuid32.S 2006-09-07 12:24:13.135174750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_setreuid32
+ syscall_weak(setreuid32,setreuid32,__libc_setreuid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setreuid.S dietlibc-0.30-execstack/syscalls.s/setreuid.S
+--- dietlibc-0.30/syscalls.s/setreuid.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setreuid.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setreuid,setreuid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setrlimit.S dietlibc-0.30-execstack/syscalls.s/setrlimit.S
+--- dietlibc-0.30/syscalls.s/setrlimit.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setrlimit.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setrlimit,setrlimit)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setsid.S dietlibc-0.30-execstack/syscalls.s/setsid.S
+--- dietlibc-0.30/syscalls.s/setsid.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setsid.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setsid,setsid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/set_thread_area.S dietlibc-0.30-execstack/syscalls.s/set_thread_area.S
+--- dietlibc-0.30/syscalls.s/set_thread_area.S 2005-10-08 23:22:09.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/set_thread_area.S 2006-09-07 12:24:13.127174250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_set_thread_area
+ syscall(set_thread_area,set_thread_area)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/set_tid_address.S dietlibc-0.30-execstack/syscalls.s/set_tid_address.S
+--- dietlibc-0.30/syscalls.s/set_tid_address.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/set_tid_address.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(set_tid_address,set_tid_address)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/settimeofday.S dietlibc-0.30-execstack/syscalls.s/settimeofday.S
+--- dietlibc-0.30/syscalls.s/settimeofday.S 2001-08-01 23:34:34.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/settimeofday.S 2006-09-07 12:24:13.151175750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(settimeofday,settimeofday)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setuid32.S dietlibc-0.30-execstack/syscalls.s/setuid32.S
+--- dietlibc-0.30/syscalls.s/setuid32.S 2001-09-04 01:35:16.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setuid32.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_setuid32
+ syscall_weak(setuid32,setuid32,__libc_setuid32)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setuid.S dietlibc-0.30-execstack/syscalls.s/setuid.S
+--- dietlibc-0.30/syscalls.s/setuid.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/setuid.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setuid,setuid)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/setxattr.S dietlibc-0.30-execstack/syscalls.s/setxattr.S
+--- dietlibc-0.30/syscalls.s/setxattr.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/setxattr.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setxattr,setxattr)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sigaltstack.S dietlibc-0.30-execstack/syscalls.s/sigaltstack.S
+--- dietlibc-0.30/syscalls.s/sigaltstack.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sigaltstack.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(sigaltstack,sigaltstack,__sigaltstack)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/socketcall.S dietlibc-0.30-execstack/syscalls.s/socketcall.S
+--- dietlibc-0.30/syscalls.s/socketcall.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/socketcall.S 2006-09-07 12:24:13.135174750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_socketcall
+ syscall(socketcall,socketcall)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/stat64.S dietlibc-0.30-execstack/syscalls.s/stat64.S
+--- dietlibc-0.30/syscalls.s/stat64.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/stat64.S 2006-09-07 12:24:13.163176500 +0200
+@@ -8,3 +8,7 @@ syscall(stat64,__dietlibc_stat64)
+ syscall(stat64,stat64)
+ #endif
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/statfs64.S dietlibc-0.30-execstack/syscalls.s/statfs64.S
+--- dietlibc-0.30/syscalls.s/statfs64.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/statfs64.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_statfs64
+ syscall(statfs64,__dietlibc_statfs64)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/statfs.S dietlibc-0.30-execstack/syscalls.s/statfs.S
+--- dietlibc-0.30/syscalls.s/statfs.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/statfs.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(statfs,statfs)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/stat.S dietlibc-0.30-execstack/syscalls.s/stat.S
+--- dietlibc-0.30/syscalls.s/stat.S 2001-02-03 01:37:00.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/stat.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(stat,stat)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/stime.S dietlibc-0.30-execstack/syscalls.s/stime.S
+--- dietlibc-0.30/syscalls.s/stime.S 2002-08-08 18:30:13.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/stime.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_stime
+ syscall(stime,stime)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/swapoff.S dietlibc-0.30-execstack/syscalls.s/swapoff.S
+--- dietlibc-0.30/syscalls.s/swapoff.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/swapoff.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(swapoff,swapoff)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/swapon.S dietlibc-0.30-execstack/syscalls.s/swapon.S
+--- dietlibc-0.30/syscalls.s/swapon.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/swapon.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(swapon,swapon)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/symlink.S dietlibc-0.30-execstack/syscalls.s/symlink.S
+--- dietlibc-0.30/syscalls.s/symlink.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/symlink.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(symlink,symlink)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sync.S dietlibc-0.30-execstack/syscalls.s/sync.S
+--- dietlibc-0.30/syscalls.s/sync.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/sync.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sync,sync)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sysctl.S dietlibc-0.30-execstack/syscalls.s/sysctl.S
+--- dietlibc-0.30/syscalls.s/sysctl.S 2003-08-19 17:28:11.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/sysctl.S 2006-09-07 12:24:13.163176500 +0200
+@@ -5,3 +5,7 @@ syscall(sysctl,_sysctl)
+ #elif (defined(__NR__sysctl))
+ syscall(_sysctl,_sysctl)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sysfs.S dietlibc-0.30-execstack/syscalls.s/sysfs.S
+--- dietlibc-0.30/syscalls.s/sysfs.S 2003-09-01 19:18:44.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/sysfs.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_sysfs
+ syscall(sysfs,sysfs)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/sysinfo.S dietlibc-0.30-execstack/syscalls.s/sysinfo.S
+--- dietlibc-0.30/syscalls.s/sysinfo.S 2001-05-06 02:07:29.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/sysinfo.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sysinfo,sysinfo)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/syslog.S dietlibc-0.30-execstack/syscalls.s/syslog.S
+--- dietlibc-0.30/syscalls.s/syslog.S 2001-08-23 20:33:44.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/syslog.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(syslog,__syscall_syslog,klogctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/tgkill.S dietlibc-0.30-execstack/syscalls.s/tgkill.S
+--- dietlibc-0.30/syscalls.s/tgkill.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/tgkill.S 2006-09-07 12:24:13.127174250 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(tgkill,tgkill)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/timer_create.S dietlibc-0.30-execstack/syscalls.s/timer_create.S
+--- dietlibc-0.30/syscalls.s/timer_create.S 2004-04-14 15:13:29.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/timer_create.S 2006-09-07 12:24:13.143175250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_timer_create
+ syscall(timer_create,timer_create)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/timer_delete.S dietlibc-0.30-execstack/syscalls.s/timer_delete.S
+--- dietlibc-0.30/syscalls.s/timer_delete.S 2004-04-14 15:13:29.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/timer_delete.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_timer_delete
+ syscall(timer_delete,timer_delete)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/timer_getoverrun.S dietlibc-0.30-execstack/syscalls.s/timer_getoverrun.S
+--- dietlibc-0.30/syscalls.s/timer_getoverrun.S 2004-04-14 15:13:29.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/timer_getoverrun.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_timer_getoverrun
+ syscall(timer_getoverrun,timer_getoverrun)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/timer_gettime.S dietlibc-0.30-execstack/syscalls.s/timer_gettime.S
+--- dietlibc-0.30/syscalls.s/timer_gettime.S 2004-04-14 15:13:29.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/timer_gettime.S 2006-09-07 12:24:13.135174750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_timer_gettime
+ syscall(timer_gettime,timer_gettime)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/timer_settime.S dietlibc-0.30-execstack/syscalls.s/timer_settime.S
+--- dietlibc-0.30/syscalls.s/timer_settime.S 2004-04-14 15:13:29.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/timer_settime.S 2006-09-07 12:24:13.135174750 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_timer_settime
+ syscall(timer_settime,timer_settime)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/time.S dietlibc-0.30-execstack/syscalls.s/time.S
+--- dietlibc-0.30/syscalls.s/time.S 2002-03-21 17:05:18.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/time.S 2006-09-07 12:24:13.159176250 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_time
+ syscall(time,time)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/times.S dietlibc-0.30-execstack/syscalls.s/times.S
+--- dietlibc-0.30/syscalls.s/times.S 2001-02-11 22:54:32.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/times.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(times,times)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/tkill.S dietlibc-0.30-execstack/syscalls.s/tkill.S
+--- dietlibc-0.30/syscalls.s/tkill.S 2005-10-04 19:47:03.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/tkill.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,2 +1,6 @@
+ #include "syscalls.h"
+ syscall(tkill,tkill)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/truncate64.S dietlibc-0.30-execstack/syscalls.s/truncate64.S
+--- dietlibc-0.30/syscalls.s/truncate64.S 2002-05-05 23:49:30.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/truncate64.S 2006-09-07 12:24:13.143175250 +0200
+@@ -8,3 +8,7 @@ syscall(truncate64,__dietlibc_truncate64
+ syscall(truncate64,truncate64)
+ #endif
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/truncate.S dietlibc-0.30-execstack/syscalls.s/truncate.S
+--- dietlibc-0.30/syscalls.s/truncate.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/truncate.S 2006-09-07 12:24:13.163176500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(truncate,truncate)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/umask.S dietlibc-0.30-execstack/syscalls.s/umask.S
+--- dietlibc-0.30/syscalls.s/umask.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/umask.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(umask,umask)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/umount2.S dietlibc-0.30-execstack/syscalls.s/umount2.S
+--- dietlibc-0.30/syscalls.s/umount2.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/umount2.S 2006-09-07 12:24:13.155176000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_umount2
+ syscall(umount2,umount2)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/umount.S dietlibc-0.30-execstack/syscalls.s/umount.S
+--- dietlibc-0.30/syscalls.s/umount.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/umount.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(umount,umount)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/uname.S dietlibc-0.30-execstack/syscalls.s/uname.S
+--- dietlibc-0.30/syscalls.s/uname.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/uname.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(uname,uname)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/unlink.S dietlibc-0.30-execstack/syscalls.s/unlink.S
+--- dietlibc-0.30/syscalls.s/unlink.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/unlink.S 2006-09-07 12:24:13.139175000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(unlink,unlink)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/ustat.S dietlibc-0.30-execstack/syscalls.s/ustat.S
+--- dietlibc-0.30/syscalls.s/ustat.S 2005-07-13 09:31:41.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/ustat.S 2006-09-07 12:24:13.131174500 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(ustat,ustat)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/utime.S dietlibc-0.30-execstack/syscalls.s/utime.S
+--- dietlibc-0.30/syscalls.s/utime.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/utime.S 2006-09-07 12:24:13.135174750 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(utime,utime)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/vhangup.S dietlibc-0.30-execstack/syscalls.s/vhangup.S
+--- dietlibc-0.30/syscalls.s/vhangup.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/vhangup.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(vhangup,vhangup)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/vserver.S dietlibc-0.30-execstack/syscalls.s/vserver.S
+--- dietlibc-0.30/syscalls.s/vserver.S 2005-10-08 23:39:53.000000000 +0200
++++ dietlibc-0.30-execstack/syscalls.s/vserver.S 2006-09-07 12:24:13.139175000 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_vserver
+ syscall(vserver,vserver)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/wait4.S dietlibc-0.30-execstack/syscalls.s/wait4.S
+--- dietlibc-0.30/syscalls.s/wait4.S 2001-01-09 18:57:49.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/wait4.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(wait4,wait4)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/waitpid.S dietlibc-0.30-execstack/syscalls.s/waitpid.S
+--- dietlibc-0.30/syscalls.s/waitpid.S 2002-11-09 19:08:59.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/waitpid.S 2006-09-07 12:24:13.131174500 +0200
+@@ -3,3 +3,7 @@
+ #ifdef __NR_waitpid
+ syscall_weak(waitpid,waitpid,__libc_waitpid)
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/write.S dietlibc-0.30-execstack/syscalls.s/write.S
+--- dietlibc-0.30/syscalls.s/write.S 2001-01-30 15:46:53.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/write.S 2006-09-07 12:24:13.143175250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall_weak(write,write,__libc_write)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/syscalls.s/writev.S dietlibc-0.30-execstack/syscalls.s/writev.S
+--- dietlibc-0.30/syscalls.s/writev.S 2001-01-11 16:58:42.000000000 +0100
++++ dietlibc-0.30-execstack/syscalls.s/writev.S 2006-09-07 12:24:13.155176000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(writev,writev)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/accept.S dietlibc-0.30-execstack/x86_64/accept.S
+--- dietlibc-0.30/x86_64/accept.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/accept.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(accept, accept);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/bind.S dietlibc-0.30-execstack/x86_64/bind.S
+--- dietlibc-0.30/x86_64/bind.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/bind.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(bind, bind);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/clone.S dietlibc-0.30-execstack/x86_64/clone.S
+--- dietlibc-0.30/x86_64/clone.S 2005-01-28 17:04:54.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/clone.S 2006-09-07 12:24:13.075171000 +0200
+@@ -62,3 +62,7 @@ link_warning("clone", "warning: clone()
+ link_warning("__clone", "warning: clone() not yet tested")
+ //link_warning("clone", "warning: clone() not yet implemented")
+ //link_warning("__clone", "warning: clone() not yet implemented")
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/connect.S dietlibc-0.30-execstack/x86_64/connect.S
+--- dietlibc-0.30/x86_64/connect.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/connect.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(connect, connect);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/dyn_syscalls.S dietlibc-0.30-execstack/x86_64/dyn_syscalls.S
+--- dietlibc-0.30/x86_64/dyn_syscalls.S 2005-10-08 23:11:32.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/dyn_syscalls.S 2006-09-07 12:24:13.075171000 +0200
+@@ -297,3 +297,7 @@ _unified_syscall:
+
+ #define __errno_location __errno_location@PLT
+ #include "x86_64/gettimeofday.S"
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/getpeername.S dietlibc-0.30-execstack/x86_64/getpeername.S
+--- dietlibc-0.30/x86_64/getpeername.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/getpeername.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getpeername, getpeername);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/getsockname.S dietlibc-0.30-execstack/x86_64/getsockname.S
+--- dietlibc-0.30/x86_64/getsockname.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/getsockname.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsockname, getsockname);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/getsockopt.S dietlibc-0.30-execstack/x86_64/getsockopt.S
+--- dietlibc-0.30/x86_64/getsockopt.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/getsockopt.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(getsockopt, getsockopt);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/gettimeofday.S dietlibc-0.30-execstack/x86_64/gettimeofday.S
+--- dietlibc-0.30/x86_64/gettimeofday.S 2005-07-14 21:21:47.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/gettimeofday.S 2006-09-07 12:24:13.075171000 +0200
+@@ -16,3 +16,7 @@ gettimeofday:
+ ret
+ .Lhere:
+ .size gettimeofday,.Lhere-gettimeofday
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/listen.S dietlibc-0.30-execstack/x86_64/listen.S
+--- dietlibc-0.30/x86_64/listen.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/listen.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(listen, listen);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/__longjmp.S dietlibc-0.30-execstack/x86_64/__longjmp.S
+--- dietlibc-0.30/x86_64/__longjmp.S 2002-08-30 18:40:22.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/__longjmp.S 2006-09-07 12:24:13.079171250 +0200
+@@ -24,3 +24,7 @@ __longjmp:
+ .size __longjmp,.-__longjmp;
+
+ link_warning("__longjmp","longjmp() not yet tested")
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/msgctl.S dietlibc-0.30-execstack/x86_64/msgctl.S
+--- dietlibc-0.30/x86_64/msgctl.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/msgctl.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgctl,msgctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/msgget.S dietlibc-0.30-execstack/x86_64/msgget.S
+--- dietlibc-0.30/x86_64/msgget.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/msgget.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgget,msgget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/msgrcv.S dietlibc-0.30-execstack/x86_64/msgrcv.S
+--- dietlibc-0.30/x86_64/msgrcv.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/msgrcv.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgrcv,msgrcv)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/msgsnd.S dietlibc-0.30-execstack/x86_64/msgsnd.S
+--- dietlibc-0.30/x86_64/msgsnd.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/msgsnd.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(msgsnd,msgsnd)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/recvfrom.S dietlibc-0.30-execstack/x86_64/recvfrom.S
+--- dietlibc-0.30/x86_64/recvfrom.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/recvfrom.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recvfrom, recvfrom);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/recvmsg.S dietlibc-0.30-execstack/x86_64/recvmsg.S
+--- dietlibc-0.30/x86_64/recvmsg.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/recvmsg.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(recvmsg, recvmsg);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/semctl.S dietlibc-0.30-execstack/x86_64/semctl.S
+--- dietlibc-0.30/x86_64/semctl.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/semctl.S 2006-09-07 12:24:13.079171250 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(semctl,semctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/semget.S dietlibc-0.30-execstack/x86_64/semget.S
+--- dietlibc-0.30/x86_64/semget.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/semget.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(semget,semget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/semop.S dietlibc-0.30-execstack/x86_64/semop.S
+--- dietlibc-0.30/x86_64/semop.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/semop.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(semop,semop)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/sendmsg.S dietlibc-0.30-execstack/x86_64/sendmsg.S
+--- dietlibc-0.30/x86_64/sendmsg.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/sendmsg.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sendmsg, sendmsg);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/sendto.S dietlibc-0.30-execstack/x86_64/sendto.S
+--- dietlibc-0.30/x86_64/sendto.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/sendto.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(sendto, sendto);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/setjmp.S dietlibc-0.30-execstack/x86_64/setjmp.S
+--- dietlibc-0.30/x86_64/setjmp.S 2005-01-28 17:04:54.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/setjmp.S 2006-09-07 12:24:13.079171250 +0200
+@@ -35,3 +35,7 @@ link_warning("__sigsetjmp","setjmp() not
+ //link_warning("setjmp","error: setjmp() not yet implemented")
+ //link_warning("__sigsetjmp","error: setjmp() not yet implemented")
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/setsockopt.S dietlibc-0.30-execstack/x86_64/setsockopt.S
+--- dietlibc-0.30/x86_64/setsockopt.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/setsockopt.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(setsockopt, setsockopt);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/shmat.S dietlibc-0.30-execstack/x86_64/shmat.S
+--- dietlibc-0.30/x86_64/shmat.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/shmat.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmat,shmat)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/shmctl.S dietlibc-0.30-execstack/x86_64/shmctl.S
+--- dietlibc-0.30/x86_64/shmctl.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/shmctl.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmctl,shmctl)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/shmdt.S dietlibc-0.30-execstack/x86_64/shmdt.S
+--- dietlibc-0.30/x86_64/shmdt.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/shmdt.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmdt,shmdt)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/shmget.S dietlibc-0.30-execstack/x86_64/shmget.S
+--- dietlibc-0.30/x86_64/shmget.S 2003-01-04 23:21:48.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/shmget.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shmget,shmget)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/shutdown.S dietlibc-0.30-execstack/x86_64/shutdown.S
+--- dietlibc-0.30/x86_64/shutdown.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/shutdown.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(shutdown, shutdown);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/socketpair.S dietlibc-0.30-execstack/x86_64/socketpair.S
+--- dietlibc-0.30/x86_64/socketpair.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/socketpair.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socketpair, socketpair);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/socket.S dietlibc-0.30-execstack/x86_64/socket.S
+--- dietlibc-0.30/x86_64/socket.S 2002-08-05 20:08:41.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/socket.S 2006-09-07 12:24:13.075171000 +0200
+@@ -1,3 +1,7 @@
+ #include "syscalls.h"
+
+ syscall(socket, socket);
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/start.S dietlibc-0.30-execstack/x86_64/start.S
+--- dietlibc-0.30/x86_64/start.S 2006-04-04 07:35:14.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/start.S 2006-09-07 12:24:13.075171000 +0200
+@@ -53,3 +53,7 @@ _start:
+ .Lstart:
+ .size _start,.Lstart-_start
+
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/__testandset.S dietlibc-0.30-execstack/x86_64/__testandset.S
+--- dietlibc-0.30/x86_64/__testandset.S 2002-09-16 13:17:02.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/__testandset.S 2006-09-07 12:24:13.075171000 +0200
+@@ -10,3 +10,7 @@ __testandset:
+ ret
+
+ link_warning("__testandset", "warning: __testandset() was never tested!")
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/umount.S dietlibc-0.30-execstack/x86_64/umount.S
+--- dietlibc-0.30/x86_64/umount.S 2002-09-02 17:49:28.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/umount.S 2006-09-07 12:24:13.075171000 +0200
+@@ -7,3 +7,7 @@ umount:
+ mov $__NR_umount2,%al
+ xorq %rsi,%rsi
+ jmp __unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/unified.S dietlibc-0.30-execstack/x86_64/unified.S
+--- dietlibc-0.30/x86_64/unified.S 2005-05-08 01:07:33.000000000 +0200
++++ dietlibc-0.30-execstack/x86_64/unified.S 2006-09-07 12:24:13.075171000 +0200
+@@ -30,3 +30,7 @@ __unified_syscall:
+ ret
+ .Lhere:
+ .size __unified_syscall,.Lhere-__unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30/x86_64/waitpid.S dietlibc-0.30-execstack/x86_64/waitpid.S
+--- dietlibc-0.30/x86_64/waitpid.S 2005-01-28 17:04:54.000000000 +0100
++++ dietlibc-0.30-execstack/x86_64/waitpid.S 2006-09-07 12:24:13.075171000 +0200
+@@ -10,3 +10,7 @@ __libc_waitpid:
+ xor %rcx,%rcx
+ mov $__NR_wait4,%al
+ jmp __unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
diff --git a/dietlibc/patches/0.30-r2/100_x86_pic-socketcall.patch b/dietlibc/patches/0.30-r2/100_x86_pic-socketcall.patch
new file mode 100644
index 0000000..945b2ce
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/100_x86_pic-socketcall.patch
@@ -0,0 +1,19 @@
+Index: dietlibc-0.30/i386/syscalls.h
+===================================================================
+--- dietlibc-0.30.orig/i386/syscalls.h
++++ dietlibc-0.30/i386/syscalls.h
+@@ -322,7 +322,6 @@ sym: \
+ .Lend##sym: ; \
+ .size sym,.Lend##sym-sym
+
+-#ifndef __PIC__
+ #define __socketcall(name,NAME) \
+ .text; \
+ .type name,@function; \
+@@ -335,6 +334,3 @@ __libc_##name: ; \
+ jmp socketcall; \
+ .Lend##name:; \
+ .size name,.Lend##name-name
+-#else
+-#define __socketcall(name,NAME)
+-#endif
diff --git a/dietlibc/patches/0.30-r2/150_all_rename-ppc-powerpc.patch b/dietlibc/patches/0.30-r2/150_all_rename-ppc-powerpc.patch
new file mode 100644
index 0000000..a7d3903
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/150_all_rename-ppc-powerpc.patch
@@ -0,0 +1,1430 @@
+diff -NurpP dietlibc-0.30-execstack/diet.c dietlibc-0.30-ppc-rename/diet.c
+--- dietlibc-0.30-execstack/diet.c 2006-04-04 05:47:21.000000000 +0200
++++ dietlibc-0.30-ppc-rename/diet.c 2006-09-07 12:32:01.080419500 +0200
+@@ -35,7 +35,7 @@ static const char* Os[] = {
+ "arm","-Os","-fomit-frame-pointer",0,
+ "mips","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0,
+ "mipsel","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0,
+- "ppc","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
++ "powerpc","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
+ "ppc64","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
+ "s390","-Os","-fomit-frame-pointer",0,
+ "s390x","-Os","-fomit-frame-pointer",0,
+@@ -151,7 +151,7 @@ int main(int argc,char *argv[]) {
+ #endif
+ #endif
+ #ifdef __powerpc__
+- shortplatform="ppc";
++ shortplatform="powerpc";
+ #endif
+ #ifdef __powerpc64__
+ shortplatform="ppc64";
+diff -NurpP dietlibc-0.30-execstack/Makefile dietlibc-0.30-ppc-rename/Makefile
+--- dietlibc-0.30-execstack/Makefile 2006-06-18 20:32:28.000000000 +0200
++++ dietlibc-0.30-ppc-rename/Makefile 2006-09-07 12:44:19.878766750 +0200
+@@ -24,7 +24,11 @@ ifeq ($(MYARCH),alpha)
+ ARCH=alpha
+ else
+ ifeq ($(MYARCH),ppc)
+-ARCH=ppc
++ARCH=powerpc
++MYARCH=powerpc
++else
++ifeq ($(MYARCH),powerpc)
++ARCH=powerpc
+ else
+ ifeq ($(MYARCH),ppc64)
+ ARCH=ppc64
+@@ -80,6 +84,7 @@ endif
+ endif
+ endif
+ endif
++endif
+
+ # ARCH=$(MYARCH)
+
+@@ -385,7 +390,7 @@ uninstall:
+ for i in `find include -name \*.h`; do rm -f $(DESTDIR)$(prefix)/$$i; done
+ -rmdir $(DESTDIR)$(ILIBDIR) $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(BINDIR)
+
+-.PHONY: sparc ppc mips arm alpha i386 parisc mipsel powerpc s390 sparc64
++.PHONY: sparc powerpc mips arm alpha i386 parisc mipsel powerpc s390 sparc64
+ .PHONY: x86_64 ia64 ppc64 s390x
+
+ arm sparc alpha mips parisc s390 sparc64 x86_64 ia64 ppc64 s390x:
+@@ -398,7 +403,7 @@ else
+ $(MAKE) ARCH=$@ CROSS=$@-linux- all
+ endif
+
+-ppc:
++powerpc:
+ ifeq ($(MYARCH),ppc64)
+ $(MAKE) ARCH=$@ CC="$(CC) -m32" all
+ else
+@@ -412,15 +417,11 @@ mipsel:
+ mips-gnu:
+ $(MAKE) ARCH=$@ CROSS=$@-linux-gnu- all
+
+-# Some people named their cross compiler toolchain powerpc-linux-gcc
+-powerpc:
+- $(MAKE) ARCH=ppc CROSS=powerpc-linux- all
+-
+ hppa:
+ ln -sf bin-parisc bin-hppa
+ $(MAKE) ARCH=parisc CROSS=hppa-linux- all
+
+-CROSS_ARCH=arm sparc ppc alpha i386 mips sparc64 x86_64 s390 parisc
++CROSS_ARCH=arm sparc powerpc alpha i386 mips sparc64 x86_64 s390 parisc
+ cross:
+ $(MAKE) $(subst $(ARCH),,$(CROSS_ARCH))
+
+diff -NurpP dietlibc-0.30-execstack/powerpc/clone.S dietlibc-0.30-ppc-rename/powerpc/clone.S
+--- dietlibc-0.30-execstack/powerpc/clone.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/clone.S 2006-09-07 12:24:13.119173000 +0200
+@@ -0,0 +1,52 @@
++#include <dietfeatures.h>
++#include "syscalls.h"
++#include <errno.h>
++
++.text
++.weak clone
++clone:
++.global __clone
++__clone:
++ cmpwi 4,0 /* check have non null child_stack pointer */
++ cmpwi cr1, 3,0 /* check have non null thread_funcion */
++ cror eq,4*cr1+eq,eq /* now if eq is set one is or both are zero */
++ beq .Lclone_error
++
++ stwu 1,-32(1) /* alloc some space on the stack */
++ stmw 29, 16(1) /* save r29,r30,r31 on stack */
++
++ rlwinm 4,4,0,0,27 /* mask out lower 4 bits */
++
++ /* move parameter to positions clone wants them */
++ mr 29,3 /* r29 = r3 fn */
++ mr 30,4 /* r30 = r4 stack */
++ mr 31,6 /* r31 = r6 arg */
++ mr 3, 5 /* r3 = r5 flags */
++
++ li 0, __NR_clone /* load syscall nr. */
++ sc
++
++ cmpwi cr1,3,0 /* compare return of syscall with 0 */
++ crandc 4*cr1+eq,4*cr1+eq,so
++ bne .Lclone_parent /* return was non zero -> .Lclone_parent */
++
++ /* we are the cloned process */
++ mr 1, 30 /* set stack pointer */
++ mtctr 29 /* set count register to fn ? */
++ mr 3, 31 /* set argument */
++ bctrl /* branch trough count register and link */
++ b _exit /* exit thread */
++
++.Lclone_parent:
++ lmw 29,16(1) /* restore saved registers */
++ addi 1, 1,32 /* free stack */
++ bnslr+ /* had cloned a thread so return to parent */
++ b error_unified_syscall
++
++.Lclone_error:
++ li 3, EINVAL
++ b error_unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-execstack/powerpc/__longjmp.S dietlibc-0.30-ppc-rename/powerpc/__longjmp.S
+--- dietlibc-0.30-execstack/powerpc/__longjmp.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/__longjmp.S 2006-09-07 12:24:13.119173000 +0200
+@@ -0,0 +1,63 @@
++#include <setjmp.h>
++
++
++#ifdef PIC
++#define JUMPTARGET(name) name##@plt
++#else
++#define JUMPTARGET(name) name
++#endif
++
++.global __longjmp
++.type __longjmp,@function
++.align 2
++__longjmp:
++ lwz 1,(JB_GPR1*4)(3)
++ lwz 2,(JB_GPR2*4)(3)
++ lwz 0,(JB_LR*4)(3)
++ lwz 14,((JB_GPRS+0)*4)(3)
++ lfd 14,((JB_FPRS+0*2)*4)(3)
++ lwz 15,((JB_GPRS+1)*4)(3)
++ lfd 15,((JB_FPRS+1*2)*4)(3)
++ lwz 16,((JB_GPRS+2)*4)(3)
++ lfd 16,((JB_FPRS+2*2)*4)(3)
++ lwz 17,((JB_GPRS+3)*4)(3)
++ lfd 17,((JB_FPRS+3*2)*4)(3)
++ lwz 18,((JB_GPRS+4)*4)(3)
++ lfd 18,((JB_FPRS+4*2)*4)(3)
++ lwz 19,((JB_GPRS+5)*4)(3)
++ lfd 19,((JB_FPRS+5*2)*4)(3)
++ lwz 20,((JB_GPRS+6)*4)(3)
++ lfd 20,((JB_FPRS+6*2)*4)(3)
++ mtlr 0
++ lwz 21,((JB_GPRS+7)*4)(3)
++ lfd 21,((JB_FPRS+7*2)*4)(3)
++ lwz 22,((JB_GPRS+8)*4)(3)
++ lfd 22,((JB_FPRS+8*2)*4)(3)
++ lwz 0,(JB_CR*4)(3)
++ lwz 23,((JB_GPRS+9)*4)(3)
++ lfd 23,((JB_FPRS+9*2)*4)(3)
++ lwz 24,((JB_GPRS+10)*4)(3)
++ lfd 24,((JB_FPRS+10*2)*4)(3)
++ lwz 25,((JB_GPRS+11)*4)(3)
++ lfd 25,((JB_FPRS+11*2)*4)(3)
++ mtcrf 0xFF,0
++ lwz 26,((JB_GPRS+12)*4)(3)
++ lfd 26,((JB_FPRS+12*2)*4)(3)
++ lwz 27,((JB_GPRS+13)*4)(3)
++ lfd 27,((JB_FPRS+13*2)*4)(3)
++ lwz 28,((JB_GPRS+14)*4)(3)
++ lfd 28,((JB_FPRS+14*2)*4)(3)
++ lwz 29,((JB_GPRS+15)*4)(3)
++ lfd 29,((JB_FPRS+15*2)*4)(3)
++ lwz 30,((JB_GPRS+16)*4)(3)
++ lfd 30,((JB_FPRS+16*2)*4)(3)
++ lwz 31,((JB_GPRS+17)*4)(3)
++ lfd 31,((JB_FPRS+17*2)*4)(3)
++ mr 3,4
++ blr
++.size __longjmp,.-__longjmp
++
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-execstack/powerpc/Makefile.add dietlibc-0.30-ppc-rename/powerpc/Makefile.add
+--- dietlibc-0.30-execstack/powerpc/Makefile.add 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/Makefile.add 2001-01-30 16:01:20.000000000 +0100
+@@ -0,0 +1,3 @@
++
++CFLAGS+=-mpowerpc-gpopt -mpowerpc-gfxopt -Os
++VPATH:=ppc:syscalls.s:$(VPATH)
+diff -NurpP dietlibc-0.30-execstack/powerpc/mmap.c dietlibc-0.30-ppc-rename/powerpc/mmap.c
+--- dietlibc-0.30-execstack/powerpc/mmap.c 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/mmap.c 2001-06-18 23:08:07.000000000 +0200
+@@ -0,0 +1,40 @@
++#include "dietfeatures.h"
++#include <sys/types.h>
++#include <errno.h>
++#include "syscalls.h"
++
++int mmap(void*start,size_t length,int prot,int flags,int fd,off_t offset) {
++ unsigned long __sc_ret, __sc_err;
++ {
++ register unsigned long __sc_0 __asm__ ("r0");
++ register unsigned long __sc_3 __asm__ ("r3");
++ register unsigned long __sc_4 __asm__ ("r4");
++ register unsigned long __sc_5 __asm__ ("r5");
++ register unsigned long __sc_6 __asm__ ("r6");
++ register unsigned long __sc_7 __asm__ ("r7");
++ register unsigned long __sc_8 __asm__ ("r8");
++
++ __sc_3 = (unsigned long) (start);
++ __sc_4 = (unsigned long) (length);
++ __sc_5 = (unsigned long) (prot);
++ __sc_6 = (unsigned long) (flags);
++ __sc_7 = (unsigned long) (fd);
++ __sc_8 = (unsigned long) (offset);
++ __sc_0 = __NR_mmap;
++ __asm__ __volatile__
++ ("sc \n\t"
++ "mfcr %1 "
++ : "=&r" (__sc_3), "=&r" (__sc_0)
++ : "0" (__sc_3), "1" (__sc_0),
++ "r" (__sc_4),
++ "r" (__sc_5),
++ "r" (__sc_6),
++ "r" (__sc_7),
++ "r" (__sc_8)
++ : "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12");
++ __sc_ret = __sc_3;
++ __sc_err = __sc_0;
++ }
++ return (__sc_err & 0x10000000 ? errno = __sc_ret, __sc_ret = -1 : 0),
++ (int) __sc_ret;
++}
+diff -NurpP dietlibc-0.30-execstack/powerpc/setjmp.S dietlibc-0.30-ppc-rename/powerpc/setjmp.S
+--- dietlibc-0.30-execstack/powerpc/setjmp.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/setjmp.S 2006-09-07 12:24:13.119173000 +0200
+@@ -0,0 +1,60 @@
++#include <setjmp.h>
++
++#ifdef PIC
++#define JUMPTARGET(name) name##@plt
++#else
++#define JUMPTARGET(name) name
++#endif
++
++.global __sigsetjmp
++.type __sigsetjmp,@function
++.align 2
++__sigsetjmp:
++ stw 1,(JB_GPR1*4)(3)
++ mflr 0
++ stw 2,(JB_GPR2*4)(3)
++ stw 14,((JB_GPRS+0)*4)(3)
++ stfd 14,((JB_FPRS+0*2)*4)(3)
++ stw 0,(JB_LR*4)(3)
++ stw 15,((JB_GPRS+1)*4)(3)
++ stfd 15,((JB_FPRS+1*2)*4)(3)
++ mfcr 0
++ stw 16,((JB_GPRS+2)*4)(3)
++ stfd 16,((JB_FPRS+2*2)*4)(3)
++ stw 0,(JB_CR*4)(3)
++ stw 17,((JB_GPRS+3)*4)(3)
++ stfd 17,((JB_FPRS+3*2)*4)(3)
++ stw 18,((JB_GPRS+4)*4)(3)
++ stfd 18,((JB_FPRS+4*2)*4)(3)
++ stw 19,((JB_GPRS+5)*4)(3)
++ stfd 19,((JB_FPRS+5*2)*4)(3)
++ stw 20,((JB_GPRS+6)*4)(3)
++ stfd 20,((JB_FPRS+6*2)*4)(3)
++ stw 21,((JB_GPRS+7)*4)(3)
++ stfd 21,((JB_FPRS+7*2)*4)(3)
++ stw 22,((JB_GPRS+8)*4)(3)
++ stfd 22,((JB_FPRS+8*2)*4)(3)
++ stw 23,((JB_GPRS+9)*4)(3)
++ stfd 23,((JB_FPRS+9*2)*4)(3)
++ stw 24,((JB_GPRS+10)*4)(3)
++ stfd 24,((JB_FPRS+10*2)*4)(3)
++ stw 25,((JB_GPRS+11)*4)(3)
++ stfd 25,((JB_FPRS+11*2)*4)(3)
++ stw 26,((JB_GPRS+12)*4)(3)
++ stfd 26,((JB_FPRS+12*2)*4)(3)
++ stw 27,((JB_GPRS+13)*4)(3)
++ stfd 27,((JB_FPRS+13*2)*4)(3)
++ stw 28,((JB_GPRS+14)*4)(3)
++ stfd 28,((JB_FPRS+14*2)*4)(3)
++ stw 29,((JB_GPRS+15)*4)(3)
++ stfd 29,((JB_FPRS+15*2)*4)(3)
++ stw 30,((JB_GPRS+16)*4)(3)
++ stfd 30,((JB_FPRS+16*2)*4)(3)
++ stw 31,((JB_GPRS+17)*4)(3)
++ stfd 31,((JB_FPRS+17*2)*4)(3)
++ b JUMPTARGET (__sigjmp_save)
++.size __sigsetjmp,.-__sigsetjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-execstack/powerpc/start.S dietlibc-0.30-ppc-rename/powerpc/start.S
+--- dietlibc-0.30-execstack/powerpc/start.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/start.S 2006-09-07 12:24:13.119173000 +0200
+@@ -0,0 +1,56 @@
++#include "dietfeatures.h"
++
++.text
++.global _start
++.type _start,@function
++_start:
++ /* Save the stack pointer, in case we're statically linked under Linux. */
++ mr 9,1
++ /* Set up an initial stack frame, and clear the LR. */
++ clrrwi 1,1,4
++ li 0,0
++ stwu 1,-16(1)
++ mtlr 0
++ stw 0,0(1)
++
++ /* r9 contains the initial stack pointer
++ argc = (r9)
++ argv = (r9+4)
++ envp = argv+(argc+1)*4 */
++
++ lis 14,__libc_stack_end@ha
++ stw 9,__libc_stack_end@l(14)
++
++ lwzu 3,0(9) /* argc */
++ addi 4,9,4 /* argv */
++ add 5,0,3 /* argc... */
++ addi 5,5,1 /* argc+1...*/
++ slwi 5,5,2 /* (argc+1)*4 */
++ add 5,5,4 /* argv+(argc+1)*4 */
++
++ lis 14,environ@ha
++ stw 5,environ@l(14)
++
++#ifdef WANT_DYNAMIC
++ mr 6,7
++ bl _dyn_start
++#else
++ bl CALL_IN_STARTCODE
++#endif
++ b exit
++.size _start,.-_start
++
++
++/* Define a symbol for the first piece of initialized data. */
++ .section ".data"
++__data_start:
++
++/* this is needed for libgcc_eh.a - see gcc-3.4/gcc/config/rs6000/linux-unwind.h */
++ .weak __libc_stack_end
++ .lcomm __libc_stack_end,4,4
++ .type __libc_stack_end,@object
++
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-execstack/powerpc/syscalls.h dietlibc-0.30-ppc-rename/powerpc/syscalls.h
+--- dietlibc-0.30-execstack/powerpc/syscalls.h 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/syscalls.h 2005-09-21 09:33:08.000000000 +0200
+@@ -0,0 +1,299 @@
++
++#define __NR_exit 1
++#define __NR_fork 2
++#define __NR_read 3
++#define __NR_write 4
++#define __NR_open 5
++#define __NR_close 6
++#define __NR_waitpid 7
++#define __NR_creat 8
++#define __NR_link 9
++#define __NR_unlink 10
++#define __NR_execve 11
++#define __NR_chdir 12
++#define __NR_time 13
++#define __NR_mknod 14
++#define __NR_chmod 15
++#define __NR_lchown 16
++#define __NR_break 17
++#define __NR_oldstat 18
++#define __NR_lseek 19
++#define __NR_getpid 20
++#define __NR_mount 21
++#define __NR_umount 22
++#define __NR_setuid 23
++#define __NR_getuid 24
++#define __NR_stime 25
++#define __NR_ptrace 26
++#define __NR_alarm 27
++#define __NR_oldfstat 28
++#define __NR_pause 29
++#define __NR_utime 30
++#define __NR_stty 31
++#define __NR_gtty 32
++#define __NR_access 33
++#define __NR_nice 34
++#define __NR_ftime 35
++#define __NR_sync 36
++#define __NR_kill 37
++#define __NR_rename 38
++#define __NR_mkdir 39
++#define __NR_rmdir 40
++#define __NR_dup 41
++#define __NR_pipe 42
++#define __NR_times 43
++#define __NR_prof 44
++#define __NR_brk 45
++#define __NR_setgid 46
++#define __NR_getgid 47
++#define __NR_signal 48
++#define __NR_geteuid 49
++#define __NR_getegid 50
++#define __NR_acct 51
++#define __NR_umount2 52
++#define __NR_lock 53
++#define __NR_ioctl 54
++#define __NR_fcntl 55
++#define __NR_mpx 56
++#define __NR_setpgid 57
++#define __NR_ulimit 58
++#define __NR_oldolduname 59
++#define __NR_umask 60
++#define __NR_chroot 61
++#define __NR_ustat 62
++#define __NR_dup2 63
++#define __NR_getppid 64
++#define __NR_getpgrp 65
++#define __NR_setsid 66
++#define __NR_sigaction 67
++#define __NR_sgetmask 68
++#define __NR_ssetmask 69
++#define __NR_setreuid 70
++#define __NR_setregid 71
++#define __NR_sigsuspend 72
++#define __NR_sigpending 73
++#define __NR_sethostname 74
++#define __NR_setrlimit 75
++#define __NR_getrlimit 76
++#define __NR_getrusage 77
++#define __NR_gettimeofday 78
++#define __NR_settimeofday 79
++#define __NR_getgroups 80
++#define __NR_setgroups 81
++#define __NR_select 82
++#define __NR_symlink 83
++#define __NR_oldlstat 84
++#define __NR_readlink 85
++#define __NR_uselib 86
++#define __NR_swapon 87
++#define __NR_reboot 88
++#define __NR_readdir 89
++#define __NR_mmap 90
++#define __NR_munmap 91
++#define __NR_truncate 92
++#define __NR_ftruncate 93
++#define __NR_fchmod 94
++#define __NR_fchown 95
++#define __NR_getpriority 96
++#define __NR_setpriority 97
++#define __NR_profil 98
++#define __NR_statfs 99
++#define __NR_fstatfs 100
++#define __NR_ioperm 101
++#define __NR_socketcall 102
++#define __NR_syslog 103
++#define __NR_setitimer 104
++#define __NR_getitimer 105
++#define __NR_stat 106
++#define __NR_lstat 107
++#define __NR_fstat 108
++#define __NR_olduname 109
++#define __NR_iopl 110
++#define __NR_vhangup 111
++#define __NR_idle 112
++#define __NR_vm86 113
++#define __NR_wait4 114
++#define __NR_swapoff 115
++#define __NR_sysinfo 116
++#define __NR_ipc 117
++#define __NR_fsync 118
++#define __NR_sigreturn 119
++#define __NR_clone 120
++#define __NR_setdomainname 121
++#define __NR_uname 122
++#define __NR_modify_ldt 123
++#define __NR_adjtimex 124
++#define __NR_mprotect 125
++#define __NR_sigprocmask 126
++#define __NR_create_module 127
++#define __NR_init_module 128
++#define __NR_delete_module 129
++#define __NR_get_kernel_syms 130
++#define __NR_quotactl 131
++#define __NR_getpgid 132
++#define __NR_fchdir 133
++#define __NR_bdflush 134
++#define __NR_sysfs 135
++#define __NR_personality 136
++#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
++#define __NR_setfsuid 138
++#define __NR_setfsgid 139
++#define __NR__llseek 140
++#define __NR_getdents 141
++#define __NR__newselect 142
++#define __NR_flock 143
++#define __NR_msync 144
++#define __NR_readv 145
++#define __NR_writev 146
++#define __NR_getsid 147
++#define __NR_fdatasync 148
++#define __NR__sysctl 149
++#define __NR_mlock 150
++#define __NR_munlock 151
++#define __NR_mlockall 152
++#define __NR_munlockall 153
++#define __NR_sched_setparam 154
++#define __NR_sched_getparam 155
++#define __NR_sched_setscheduler 156
++#define __NR_sched_getscheduler 157
++#define __NR_sched_yield 158
++#define __NR_sched_get_priority_max 159
++#define __NR_sched_get_priority_min 160
++#define __NR_sched_rr_get_interval 161
++#define __NR_nanosleep 162
++#define __NR_mremap 163
++#define __NR_setresuid 164
++#define __NR_getresuid 165
++#define __NR_query_module 166
++#define __NR_poll 167
++#define __NR_nfsservctl 168
++#define __NR_setresgid 169
++#define __NR_getresgid 170
++#define __NR_prctl 171
++#define __NR_rt_sigreturn 172
++#define __NR_rt_sigaction 173
++#define __NR_rt_sigprocmask 174
++#define __NR_rt_sigpending 175
++#define __NR_rt_sigtimedwait 176
++#define __NR_rt_sigqueueinfo 177
++#define __NR_rt_sigsuspend 178
++#define __NR_pread 179
++#define __NR_pwrite 180
++#define __NR_chown 181
++#define __NR_getcwd 182
++#define __NR_capget 183
++#define __NR_capset 184
++#define __NR_sigaltstack 185
++#define __NR_sendfile 186
++#define __NR_getpmsg 187 /* some people actually want streams */
++#define __NR_putpmsg 188 /* some people actually want streams */
++#define __NR_vfork 189
++#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
++#define __NR_readahead 191
++#define __NR_mmap2 192
++#define __NR_truncate64 193
++#define __NR_ftruncate64 194
++#define __NR_stat64 195
++#define __NR_lstat64 196
++#define __NR_fstat64 197
++#define __NR_pciconfig_read 198
++#define __NR_pciconfig_write 199
++#define __NR_pciconfig_iobase 200
++#define __NR_multiplexer 201
++#define __NR_getdents64 202
++#define __NR_pivot_root 203
++#define __NR_fcntl64 204
++#define __NR_madvise 205
++#define __NR_mincore 206
++#define __NR_gettid 207
++#define __NR_tkill 208
++#define __NR_setxattr 209
++#define __NR_lsetxattr 210
++#define __NR_fsetxattr 211
++#define __NR_getxattr 212
++#define __NR_lgetxattr 213
++#define __NR_fgetxattr 214
++#define __NR_listxattr 215
++#define __NR_llistxattr 216
++#define __NR_flistxattr 217
++#define __NR_removexattr 218
++#define __NR_lremovexattr 219
++#define __NR_fremovexattr 220
++#define __NR_futex 221
++#define __NR_sched_setaffinity 222
++#define __NR_sched_getaffinity 223
++/* 224 currently unused */
++#define __NR_tuxcall 225
++#define __NR_sendfile64 226
++#define __NR_io_setup 227
++#define __NR_io_destroy 228
++#define __NR_io_getevents 229
++#define __NR_io_submit 230
++#define __NR_io_cancel 231
++#define __NR_set_tid_address 232
++#define __NR_fadvise64 233
++#define __NR_exit_group 234
++#define __NR_lookup_dcookie 235
++#define __NR_epoll_create 236
++#define __NR_epoll_ctl 237
++#define __NR_epoll_wait 238
++#define __NR_remap_file_pages 239
++#define __NR_timer_create 240
++#define __NR_timer_settime 241
++#define __NR_timer_gettime 242
++#define __NR_timer_getoverrun 243
++#define __NR_timer_delete 244
++#define __NR_clock_settime 245
++#define __NR_clock_gettime 246
++#define __NR_clock_getres 247
++#define __NR_clock_nanosleep 248
++#define __NR_swapcontext 249
++#define __NR_tgkill 250
++#define __NR_utimes 251
++#define __NR_statfs64 252
++#define __NR_fstatfs64 253
++#define __NR_fadvise64_64 254
++#define __NR_rtas 255
++#define __NR_sys_debug_setcontext 256
++/* Number 257 is reserved for vserver */
++/* Number 258 is reserved for new sys_remap_file_pages */
++/* Number 259 is reserved for new sys_mbind */
++/* Number 260 is reserved for new sys_get_mempolicy */
++/* Number 261 is reserved for new sys_set_mempolicy */
++#define __NR_mq_open 262
++#define __NR_mq_unlink 263
++#define __NR_mq_timedsend 264
++#define __NR_mq_timedreceive 265
++#define __NR_mq_notify 266
++#define __NR_mq_getsetattr 267
++#define __NR_kexec_load 268
++#define __NR_add_key 269
++#define __NR_request_key 270
++#define __NR_keyctl 271
++#define __NR_waitid 272
++#define __NR_ioprio_set 273
++#define __NR_ioprio_get 274
++#define __NR_inotify_init 275
++#define __NR_inotify_add_watch 276
++#define __NR_inotify_rm_watch 277
++
++
++#define syscall_weak(name,wsym,sym) \
++.text; \
++.type wsym,@function; \
++.weak wsym; \
++wsym: ; \
++.type sym,@function; \
++.global sym; \
++sym: \
++ li 0,__NR_##name; \
++ b __unified_syscall
++
++#define syscall(name,sym) \
++.text; \
++.type sym,@function; \
++.global sym; \
++sym: \
++ li 0,__NR_##name; \
++ b __unified_syscall
++
+diff -NurpP dietlibc-0.30-execstack/powerpc/__testandset.S dietlibc-0.30-ppc-rename/powerpc/__testandset.S
+--- dietlibc-0.30-execstack/powerpc/__testandset.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/__testandset.S 2006-09-07 12:24:13.119173000 +0200
+@@ -0,0 +1,16 @@
++.global __testandset
++.type __testandset,@function
++.align 2
++__testandset:
++1: lwarx 5,0,3
++ li 0,1
++ stwcx. 0,0,3
++ bne- 1b
++ mr 3,5
++ blr
++.size __testandset,.-__testandset
++
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-execstack/powerpc/unified.S dietlibc-0.30-ppc-rename/powerpc/unified.S
+--- dietlibc-0.30-execstack/powerpc/unified.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc-rename/powerpc/unified.S 2006-09-07 12:24:13.119173000 +0200
+@@ -0,0 +1,44 @@
++#include <dietfeatures.h>
++#include "syscalls.h"
++
++.text
++.type exit,@function
++.weak exit
++exit:
++.type _exit,@function
++.global _exit
++_exit:
++ li 0,__NR_exit
++.global __unified_syscall
++__unified_syscall:
++ sc
++ bnslr+
++
++.global error_unified_syscall
++error_unified_syscall:
++#ifdef WANT_THREAD_SAFE
++ stwu 1,-16(1)
++ mflr 0
++ stw 0,20(1)
++ stw 3,12(1)
++ bl __errno_location
++ lwz 0,12(1)
++ stw 0,0(3)
++ lwz 0,20(1)
++ mtlr 0
++ addi 1,1,16
++#else
++ lis 9,errno@ha
++ stw 3,errno@l(9)
++#endif
++ li 3,-1
++
++/* here we go and "reuse" the return for weak-void functions */
++#include "dietuglyweaks.h"
++
++ blr
++
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-execstack/ppc/clone.S dietlibc-0.30-ppc-rename/ppc/clone.S
+--- dietlibc-0.30-execstack/ppc/clone.S 2006-09-07 12:24:13.119173750 +0200
++++ dietlibc-0.30-ppc-rename/ppc/clone.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,52 +0,0 @@
+-#include <dietfeatures.h>
+-#include "syscalls.h"
+-#include <errno.h>
+-
+-.text
+-.weak clone
+-clone:
+-.global __clone
+-__clone:
+- cmpwi 4,0 /* check have non null child_stack pointer */
+- cmpwi cr1, 3,0 /* check have non null thread_funcion */
+- cror eq,4*cr1+eq,eq /* now if eq is set one is or both are zero */
+- beq .Lclone_error
+-
+- stwu 1,-32(1) /* alloc some space on the stack */
+- stmw 29, 16(1) /* save r29,r30,r31 on stack */
+-
+- rlwinm 4,4,0,0,27 /* mask out lower 4 bits */
+-
+- /* move parameter to positions clone wants them */
+- mr 29,3 /* r29 = r3 fn */
+- mr 30,4 /* r30 = r4 stack */
+- mr 31,6 /* r31 = r6 arg */
+- mr 3, 5 /* r3 = r5 flags */
+-
+- li 0, __NR_clone /* load syscall nr. */
+- sc
+-
+- cmpwi cr1,3,0 /* compare return of syscall with 0 */
+- crandc 4*cr1+eq,4*cr1+eq,so
+- bne .Lclone_parent /* return was non zero -> .Lclone_parent */
+-
+- /* we are the cloned process */
+- mr 1, 30 /* set stack pointer */
+- mtctr 29 /* set count register to fn ? */
+- mr 3, 31 /* set argument */
+- bctrl /* branch trough count register and link */
+- b _exit /* exit thread */
+-
+-.Lclone_parent:
+- lmw 29,16(1) /* restore saved registers */
+- addi 1, 1,32 /* free stack */
+- bnslr+ /* had cloned a thread so return to parent */
+- b error_unified_syscall
+-
+-.Lclone_error:
+- li 3, EINVAL
+- b error_unified_syscall
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-execstack/ppc/__longjmp.S dietlibc-0.30-ppc-rename/ppc/__longjmp.S
+--- dietlibc-0.30-execstack/ppc/__longjmp.S 2006-09-07 12:24:13.119173750 +0200
++++ dietlibc-0.30-ppc-rename/ppc/__longjmp.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,63 +0,0 @@
+-#include <setjmp.h>
+-
+-
+-#ifdef PIC
+-#define JUMPTARGET(name) name##@plt
+-#else
+-#define JUMPTARGET(name) name
+-#endif
+-
+-.global __longjmp
+-.type __longjmp,@function
+-.align 2
+-__longjmp:
+- lwz 1,(JB_GPR1*4)(3)
+- lwz 2,(JB_GPR2*4)(3)
+- lwz 0,(JB_LR*4)(3)
+- lwz 14,((JB_GPRS+0)*4)(3)
+- lfd 14,((JB_FPRS+0*2)*4)(3)
+- lwz 15,((JB_GPRS+1)*4)(3)
+- lfd 15,((JB_FPRS+1*2)*4)(3)
+- lwz 16,((JB_GPRS+2)*4)(3)
+- lfd 16,((JB_FPRS+2*2)*4)(3)
+- lwz 17,((JB_GPRS+3)*4)(3)
+- lfd 17,((JB_FPRS+3*2)*4)(3)
+- lwz 18,((JB_GPRS+4)*4)(3)
+- lfd 18,((JB_FPRS+4*2)*4)(3)
+- lwz 19,((JB_GPRS+5)*4)(3)
+- lfd 19,((JB_FPRS+5*2)*4)(3)
+- lwz 20,((JB_GPRS+6)*4)(3)
+- lfd 20,((JB_FPRS+6*2)*4)(3)
+- mtlr 0
+- lwz 21,((JB_GPRS+7)*4)(3)
+- lfd 21,((JB_FPRS+7*2)*4)(3)
+- lwz 22,((JB_GPRS+8)*4)(3)
+- lfd 22,((JB_FPRS+8*2)*4)(3)
+- lwz 0,(JB_CR*4)(3)
+- lwz 23,((JB_GPRS+9)*4)(3)
+- lfd 23,((JB_FPRS+9*2)*4)(3)
+- lwz 24,((JB_GPRS+10)*4)(3)
+- lfd 24,((JB_FPRS+10*2)*4)(3)
+- lwz 25,((JB_GPRS+11)*4)(3)
+- lfd 25,((JB_FPRS+11*2)*4)(3)
+- mtcrf 0xFF,0
+- lwz 26,((JB_GPRS+12)*4)(3)
+- lfd 26,((JB_FPRS+12*2)*4)(3)
+- lwz 27,((JB_GPRS+13)*4)(3)
+- lfd 27,((JB_FPRS+13*2)*4)(3)
+- lwz 28,((JB_GPRS+14)*4)(3)
+- lfd 28,((JB_FPRS+14*2)*4)(3)
+- lwz 29,((JB_GPRS+15)*4)(3)
+- lfd 29,((JB_FPRS+15*2)*4)(3)
+- lwz 30,((JB_GPRS+16)*4)(3)
+- lfd 30,((JB_FPRS+16*2)*4)(3)
+- lwz 31,((JB_GPRS+17)*4)(3)
+- lfd 31,((JB_FPRS+17*2)*4)(3)
+- mr 3,4
+- blr
+-.size __longjmp,.-__longjmp
+-
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-execstack/ppc/Makefile.add dietlibc-0.30-ppc-rename/ppc/Makefile.add
+--- dietlibc-0.30-execstack/ppc/Makefile.add 2001-01-30 16:01:20.000000000 +0100
++++ dietlibc-0.30-ppc-rename/ppc/Makefile.add 1970-01-01 01:00:00.000000000 +0100
+@@ -1,3 +0,0 @@
+-
+-CFLAGS+=-mpowerpc-gpopt -mpowerpc-gfxopt -Os
+-VPATH:=ppc:syscalls.s:$(VPATH)
+diff -NurpP dietlibc-0.30-execstack/ppc/mmap.c dietlibc-0.30-ppc-rename/ppc/mmap.c
+--- dietlibc-0.30-execstack/ppc/mmap.c 2001-06-18 23:08:07.000000000 +0200
++++ dietlibc-0.30-ppc-rename/ppc/mmap.c 1970-01-01 01:00:00.000000000 +0100
+@@ -1,40 +0,0 @@
+-#include "dietfeatures.h"
+-#include <sys/types.h>
+-#include <errno.h>
+-#include "syscalls.h"
+-
+-int mmap(void*start,size_t length,int prot,int flags,int fd,off_t offset) {
+- unsigned long __sc_ret, __sc_err;
+- {
+- register unsigned long __sc_0 __asm__ ("r0");
+- register unsigned long __sc_3 __asm__ ("r3");
+- register unsigned long __sc_4 __asm__ ("r4");
+- register unsigned long __sc_5 __asm__ ("r5");
+- register unsigned long __sc_6 __asm__ ("r6");
+- register unsigned long __sc_7 __asm__ ("r7");
+- register unsigned long __sc_8 __asm__ ("r8");
+-
+- __sc_3 = (unsigned long) (start);
+- __sc_4 = (unsigned long) (length);
+- __sc_5 = (unsigned long) (prot);
+- __sc_6 = (unsigned long) (flags);
+- __sc_7 = (unsigned long) (fd);
+- __sc_8 = (unsigned long) (offset);
+- __sc_0 = __NR_mmap;
+- __asm__ __volatile__
+- ("sc \n\t"
+- "mfcr %1 "
+- : "=&r" (__sc_3), "=&r" (__sc_0)
+- : "0" (__sc_3), "1" (__sc_0),
+- "r" (__sc_4),
+- "r" (__sc_5),
+- "r" (__sc_6),
+- "r" (__sc_7),
+- "r" (__sc_8)
+- : "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12");
+- __sc_ret = __sc_3;
+- __sc_err = __sc_0;
+- }
+- return (__sc_err & 0x10000000 ? errno = __sc_ret, __sc_ret = -1 : 0),
+- (int) __sc_ret;
+-}
+diff -NurpP dietlibc-0.30-execstack/ppc/setjmp.S dietlibc-0.30-ppc-rename/ppc/setjmp.S
+--- dietlibc-0.30-execstack/ppc/setjmp.S 2006-09-07 12:24:13.119173750 +0200
++++ dietlibc-0.30-ppc-rename/ppc/setjmp.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,60 +0,0 @@
+-#include <setjmp.h>
+-
+-#ifdef PIC
+-#define JUMPTARGET(name) name##@plt
+-#else
+-#define JUMPTARGET(name) name
+-#endif
+-
+-.global __sigsetjmp
+-.type __sigsetjmp,@function
+-.align 2
+-__sigsetjmp:
+- stw 1,(JB_GPR1*4)(3)
+- mflr 0
+- stw 2,(JB_GPR2*4)(3)
+- stw 14,((JB_GPRS+0)*4)(3)
+- stfd 14,((JB_FPRS+0*2)*4)(3)
+- stw 0,(JB_LR*4)(3)
+- stw 15,((JB_GPRS+1)*4)(3)
+- stfd 15,((JB_FPRS+1*2)*4)(3)
+- mfcr 0
+- stw 16,((JB_GPRS+2)*4)(3)
+- stfd 16,((JB_FPRS+2*2)*4)(3)
+- stw 0,(JB_CR*4)(3)
+- stw 17,((JB_GPRS+3)*4)(3)
+- stfd 17,((JB_FPRS+3*2)*4)(3)
+- stw 18,((JB_GPRS+4)*4)(3)
+- stfd 18,((JB_FPRS+4*2)*4)(3)
+- stw 19,((JB_GPRS+5)*4)(3)
+- stfd 19,((JB_FPRS+5*2)*4)(3)
+- stw 20,((JB_GPRS+6)*4)(3)
+- stfd 20,((JB_FPRS+6*2)*4)(3)
+- stw 21,((JB_GPRS+7)*4)(3)
+- stfd 21,((JB_FPRS+7*2)*4)(3)
+- stw 22,((JB_GPRS+8)*4)(3)
+- stfd 22,((JB_FPRS+8*2)*4)(3)
+- stw 23,((JB_GPRS+9)*4)(3)
+- stfd 23,((JB_FPRS+9*2)*4)(3)
+- stw 24,((JB_GPRS+10)*4)(3)
+- stfd 24,((JB_FPRS+10*2)*4)(3)
+- stw 25,((JB_GPRS+11)*4)(3)
+- stfd 25,((JB_FPRS+11*2)*4)(3)
+- stw 26,((JB_GPRS+12)*4)(3)
+- stfd 26,((JB_FPRS+12*2)*4)(3)
+- stw 27,((JB_GPRS+13)*4)(3)
+- stfd 27,((JB_FPRS+13*2)*4)(3)
+- stw 28,((JB_GPRS+14)*4)(3)
+- stfd 28,((JB_FPRS+14*2)*4)(3)
+- stw 29,((JB_GPRS+15)*4)(3)
+- stfd 29,((JB_FPRS+15*2)*4)(3)
+- stw 30,((JB_GPRS+16)*4)(3)
+- stfd 30,((JB_FPRS+16*2)*4)(3)
+- stw 31,((JB_GPRS+17)*4)(3)
+- stfd 31,((JB_FPRS+17*2)*4)(3)
+- b JUMPTARGET (__sigjmp_save)
+-.size __sigsetjmp,.-__sigsetjmp
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-execstack/ppc/start.S dietlibc-0.30-ppc-rename/ppc/start.S
+--- dietlibc-0.30-execstack/ppc/start.S 2006-09-07 12:24:13.119173750 +0200
++++ dietlibc-0.30-ppc-rename/ppc/start.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,56 +0,0 @@
+-#include "dietfeatures.h"
+-
+-.text
+-.global _start
+-.type _start,@function
+-_start:
+- /* Save the stack pointer, in case we're statically linked under Linux. */
+- mr 9,1
+- /* Set up an initial stack frame, and clear the LR. */
+- clrrwi 1,1,4
+- li 0,0
+- stwu 1,-16(1)
+- mtlr 0
+- stw 0,0(1)
+-
+- /* r9 contains the initial stack pointer
+- argc = (r9)
+- argv = (r9+4)
+- envp = argv+(argc+1)*4 */
+-
+- lis 14,__libc_stack_end@ha
+- stw 9,__libc_stack_end@l(14)
+-
+- lwzu 3,0(9) /* argc */
+- addi 4,9,4 /* argv */
+- add 5,0,3 /* argc... */
+- addi 5,5,1 /* argc+1...*/
+- slwi 5,5,2 /* (argc+1)*4 */
+- add 5,5,4 /* argv+(argc+1)*4 */
+-
+- lis 14,environ@ha
+- stw 5,environ@l(14)
+-
+-#ifdef WANT_DYNAMIC
+- mr 6,7
+- bl _dyn_start
+-#else
+- bl CALL_IN_STARTCODE
+-#endif
+- b exit
+-.size _start,.-_start
+-
+-
+-/* Define a symbol for the first piece of initialized data. */
+- .section ".data"
+-__data_start:
+-
+-/* this is needed for libgcc_eh.a - see gcc-3.4/gcc/config/rs6000/linux-unwind.h */
+- .weak __libc_stack_end
+- .lcomm __libc_stack_end,4,4
+- .type __libc_stack_end,@object
+-
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-execstack/ppc/syscalls.h dietlibc-0.30-ppc-rename/ppc/syscalls.h
+--- dietlibc-0.30-execstack/ppc/syscalls.h 2005-09-21 09:33:08.000000000 +0200
++++ dietlibc-0.30-ppc-rename/ppc/syscalls.h 1970-01-01 01:00:00.000000000 +0100
+@@ -1,299 +0,0 @@
+-
+-#define __NR_exit 1
+-#define __NR_fork 2
+-#define __NR_read 3
+-#define __NR_write 4
+-#define __NR_open 5
+-#define __NR_close 6
+-#define __NR_waitpid 7
+-#define __NR_creat 8
+-#define __NR_link 9
+-#define __NR_unlink 10
+-#define __NR_execve 11
+-#define __NR_chdir 12
+-#define __NR_time 13
+-#define __NR_mknod 14
+-#define __NR_chmod 15
+-#define __NR_lchown 16
+-#define __NR_break 17
+-#define __NR_oldstat 18
+-#define __NR_lseek 19
+-#define __NR_getpid 20
+-#define __NR_mount 21
+-#define __NR_umount 22
+-#define __NR_setuid 23
+-#define __NR_getuid 24
+-#define __NR_stime 25
+-#define __NR_ptrace 26
+-#define __NR_alarm 27
+-#define __NR_oldfstat 28
+-#define __NR_pause 29
+-#define __NR_utime 30
+-#define __NR_stty 31
+-#define __NR_gtty 32
+-#define __NR_access 33
+-#define __NR_nice 34
+-#define __NR_ftime 35
+-#define __NR_sync 36
+-#define __NR_kill 37
+-#define __NR_rename 38
+-#define __NR_mkdir 39
+-#define __NR_rmdir 40
+-#define __NR_dup 41
+-#define __NR_pipe 42
+-#define __NR_times 43
+-#define __NR_prof 44
+-#define __NR_brk 45
+-#define __NR_setgid 46
+-#define __NR_getgid 47
+-#define __NR_signal 48
+-#define __NR_geteuid 49
+-#define __NR_getegid 50
+-#define __NR_acct 51
+-#define __NR_umount2 52
+-#define __NR_lock 53
+-#define __NR_ioctl 54
+-#define __NR_fcntl 55
+-#define __NR_mpx 56
+-#define __NR_setpgid 57
+-#define __NR_ulimit 58
+-#define __NR_oldolduname 59
+-#define __NR_umask 60
+-#define __NR_chroot 61
+-#define __NR_ustat 62
+-#define __NR_dup2 63
+-#define __NR_getppid 64
+-#define __NR_getpgrp 65
+-#define __NR_setsid 66
+-#define __NR_sigaction 67
+-#define __NR_sgetmask 68
+-#define __NR_ssetmask 69
+-#define __NR_setreuid 70
+-#define __NR_setregid 71
+-#define __NR_sigsuspend 72
+-#define __NR_sigpending 73
+-#define __NR_sethostname 74
+-#define __NR_setrlimit 75
+-#define __NR_getrlimit 76
+-#define __NR_getrusage 77
+-#define __NR_gettimeofday 78
+-#define __NR_settimeofday 79
+-#define __NR_getgroups 80
+-#define __NR_setgroups 81
+-#define __NR_select 82
+-#define __NR_symlink 83
+-#define __NR_oldlstat 84
+-#define __NR_readlink 85
+-#define __NR_uselib 86
+-#define __NR_swapon 87
+-#define __NR_reboot 88
+-#define __NR_readdir 89
+-#define __NR_mmap 90
+-#define __NR_munmap 91
+-#define __NR_truncate 92
+-#define __NR_ftruncate 93
+-#define __NR_fchmod 94
+-#define __NR_fchown 95
+-#define __NR_getpriority 96
+-#define __NR_setpriority 97
+-#define __NR_profil 98
+-#define __NR_statfs 99
+-#define __NR_fstatfs 100
+-#define __NR_ioperm 101
+-#define __NR_socketcall 102
+-#define __NR_syslog 103
+-#define __NR_setitimer 104
+-#define __NR_getitimer 105
+-#define __NR_stat 106
+-#define __NR_lstat 107
+-#define __NR_fstat 108
+-#define __NR_olduname 109
+-#define __NR_iopl 110
+-#define __NR_vhangup 111
+-#define __NR_idle 112
+-#define __NR_vm86 113
+-#define __NR_wait4 114
+-#define __NR_swapoff 115
+-#define __NR_sysinfo 116
+-#define __NR_ipc 117
+-#define __NR_fsync 118
+-#define __NR_sigreturn 119
+-#define __NR_clone 120
+-#define __NR_setdomainname 121
+-#define __NR_uname 122
+-#define __NR_modify_ldt 123
+-#define __NR_adjtimex 124
+-#define __NR_mprotect 125
+-#define __NR_sigprocmask 126
+-#define __NR_create_module 127
+-#define __NR_init_module 128
+-#define __NR_delete_module 129
+-#define __NR_get_kernel_syms 130
+-#define __NR_quotactl 131
+-#define __NR_getpgid 132
+-#define __NR_fchdir 133
+-#define __NR_bdflush 134
+-#define __NR_sysfs 135
+-#define __NR_personality 136
+-#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
+-#define __NR_setfsuid 138
+-#define __NR_setfsgid 139
+-#define __NR__llseek 140
+-#define __NR_getdents 141
+-#define __NR__newselect 142
+-#define __NR_flock 143
+-#define __NR_msync 144
+-#define __NR_readv 145
+-#define __NR_writev 146
+-#define __NR_getsid 147
+-#define __NR_fdatasync 148
+-#define __NR__sysctl 149
+-#define __NR_mlock 150
+-#define __NR_munlock 151
+-#define __NR_mlockall 152
+-#define __NR_munlockall 153
+-#define __NR_sched_setparam 154
+-#define __NR_sched_getparam 155
+-#define __NR_sched_setscheduler 156
+-#define __NR_sched_getscheduler 157
+-#define __NR_sched_yield 158
+-#define __NR_sched_get_priority_max 159
+-#define __NR_sched_get_priority_min 160
+-#define __NR_sched_rr_get_interval 161
+-#define __NR_nanosleep 162
+-#define __NR_mremap 163
+-#define __NR_setresuid 164
+-#define __NR_getresuid 165
+-#define __NR_query_module 166
+-#define __NR_poll 167
+-#define __NR_nfsservctl 168
+-#define __NR_setresgid 169
+-#define __NR_getresgid 170
+-#define __NR_prctl 171
+-#define __NR_rt_sigreturn 172
+-#define __NR_rt_sigaction 173
+-#define __NR_rt_sigprocmask 174
+-#define __NR_rt_sigpending 175
+-#define __NR_rt_sigtimedwait 176
+-#define __NR_rt_sigqueueinfo 177
+-#define __NR_rt_sigsuspend 178
+-#define __NR_pread 179
+-#define __NR_pwrite 180
+-#define __NR_chown 181
+-#define __NR_getcwd 182
+-#define __NR_capget 183
+-#define __NR_capset 184
+-#define __NR_sigaltstack 185
+-#define __NR_sendfile 186
+-#define __NR_getpmsg 187 /* some people actually want streams */
+-#define __NR_putpmsg 188 /* some people actually want streams */
+-#define __NR_vfork 189
+-#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
+-#define __NR_readahead 191
+-#define __NR_mmap2 192
+-#define __NR_truncate64 193
+-#define __NR_ftruncate64 194
+-#define __NR_stat64 195
+-#define __NR_lstat64 196
+-#define __NR_fstat64 197
+-#define __NR_pciconfig_read 198
+-#define __NR_pciconfig_write 199
+-#define __NR_pciconfig_iobase 200
+-#define __NR_multiplexer 201
+-#define __NR_getdents64 202
+-#define __NR_pivot_root 203
+-#define __NR_fcntl64 204
+-#define __NR_madvise 205
+-#define __NR_mincore 206
+-#define __NR_gettid 207
+-#define __NR_tkill 208
+-#define __NR_setxattr 209
+-#define __NR_lsetxattr 210
+-#define __NR_fsetxattr 211
+-#define __NR_getxattr 212
+-#define __NR_lgetxattr 213
+-#define __NR_fgetxattr 214
+-#define __NR_listxattr 215
+-#define __NR_llistxattr 216
+-#define __NR_flistxattr 217
+-#define __NR_removexattr 218
+-#define __NR_lremovexattr 219
+-#define __NR_fremovexattr 220
+-#define __NR_futex 221
+-#define __NR_sched_setaffinity 222
+-#define __NR_sched_getaffinity 223
+-/* 224 currently unused */
+-#define __NR_tuxcall 225
+-#define __NR_sendfile64 226
+-#define __NR_io_setup 227
+-#define __NR_io_destroy 228
+-#define __NR_io_getevents 229
+-#define __NR_io_submit 230
+-#define __NR_io_cancel 231
+-#define __NR_set_tid_address 232
+-#define __NR_fadvise64 233
+-#define __NR_exit_group 234
+-#define __NR_lookup_dcookie 235
+-#define __NR_epoll_create 236
+-#define __NR_epoll_ctl 237
+-#define __NR_epoll_wait 238
+-#define __NR_remap_file_pages 239
+-#define __NR_timer_create 240
+-#define __NR_timer_settime 241
+-#define __NR_timer_gettime 242
+-#define __NR_timer_getoverrun 243
+-#define __NR_timer_delete 244
+-#define __NR_clock_settime 245
+-#define __NR_clock_gettime 246
+-#define __NR_clock_getres 247
+-#define __NR_clock_nanosleep 248
+-#define __NR_swapcontext 249
+-#define __NR_tgkill 250
+-#define __NR_utimes 251
+-#define __NR_statfs64 252
+-#define __NR_fstatfs64 253
+-#define __NR_fadvise64_64 254
+-#define __NR_rtas 255
+-#define __NR_sys_debug_setcontext 256
+-/* Number 257 is reserved for vserver */
+-/* Number 258 is reserved for new sys_remap_file_pages */
+-/* Number 259 is reserved for new sys_mbind */
+-/* Number 260 is reserved for new sys_get_mempolicy */
+-/* Number 261 is reserved for new sys_set_mempolicy */
+-#define __NR_mq_open 262
+-#define __NR_mq_unlink 263
+-#define __NR_mq_timedsend 264
+-#define __NR_mq_timedreceive 265
+-#define __NR_mq_notify 266
+-#define __NR_mq_getsetattr 267
+-#define __NR_kexec_load 268
+-#define __NR_add_key 269
+-#define __NR_request_key 270
+-#define __NR_keyctl 271
+-#define __NR_waitid 272
+-#define __NR_ioprio_set 273
+-#define __NR_ioprio_get 274
+-#define __NR_inotify_init 275
+-#define __NR_inotify_add_watch 276
+-#define __NR_inotify_rm_watch 277
+-
+-
+-#define syscall_weak(name,wsym,sym) \
+-.text; \
+-.type wsym,@function; \
+-.weak wsym; \
+-wsym: ; \
+-.type sym,@function; \
+-.global sym; \
+-sym: \
+- li 0,__NR_##name; \
+- b __unified_syscall
+-
+-#define syscall(name,sym) \
+-.text; \
+-.type sym,@function; \
+-.global sym; \
+-sym: \
+- li 0,__NR_##name; \
+- b __unified_syscall
+-
+diff -NurpP dietlibc-0.30-execstack/ppc/__testandset.S dietlibc-0.30-ppc-rename/ppc/__testandset.S
+--- dietlibc-0.30-execstack/ppc/__testandset.S 2006-09-07 12:24:13.119173750 +0200
++++ dietlibc-0.30-ppc-rename/ppc/__testandset.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,16 +0,0 @@
+-.global __testandset
+-.type __testandset,@function
+-.align 2
+-__testandset:
+-1: lwarx 5,0,3
+- li 0,1
+- stwcx. 0,0,3
+- bne- 1b
+- mr 3,5
+- blr
+-.size __testandset,.-__testandset
+-
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-execstack/ppc/unified.S dietlibc-0.30-ppc-rename/ppc/unified.S
+--- dietlibc-0.30-execstack/ppc/unified.S 2006-09-07 12:24:13.119173750 +0200
++++ dietlibc-0.30-ppc-rename/ppc/unified.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,44 +0,0 @@
+-#include <dietfeatures.h>
+-#include "syscalls.h"
+-
+-.text
+-.type exit,@function
+-.weak exit
+-exit:
+-.type _exit,@function
+-.global _exit
+-_exit:
+- li 0,__NR_exit
+-.global __unified_syscall
+-__unified_syscall:
+- sc
+- bnslr+
+-
+-.global error_unified_syscall
+-error_unified_syscall:
+-#ifdef WANT_THREAD_SAFE
+- stwu 1,-16(1)
+- mflr 0
+- stw 0,20(1)
+- stw 3,12(1)
+- bl __errno_location
+- lwz 0,12(1)
+- stw 0,0(3)
+- lwz 0,20(1)
+- mtlr 0
+- addi 1,1,16
+-#else
+- lis 9,errno@ha
+- stw 3,errno@l(9)
+-#endif
+- li 3,-1
+-
+-/* here we go and "reuse" the return for weak-void functions */
+-#include "dietuglyweaks.h"
+-
+- blr
+-
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-execstack/syscalls.h dietlibc-0.30-ppc-rename/syscalls.h
+--- dietlibc-0.30-execstack/syscalls.h 2005-03-15 09:51:22.000000000 +0100
++++ dietlibc-0.30-ppc-rename/syscalls.h 2006-09-07 12:28:54.384751750 +0200
+@@ -15,7 +15,7 @@
+ #include "ppc64/syscalls.h"
+
+ #elif defined(__powerpc__)
+-#include "ppc/syscalls.h"
++#include "powerpc/syscalls.h"
+
+ #elif defined(__mips__)
+ #include "mips/syscalls.h"
diff --git a/dietlibc/patches/0.30-r2/155_all_rename-ppc64-powerpc64.patch b/dietlibc/patches/0.30-r2/155_all_rename-ppc64-powerpc64.patch
new file mode 100644
index 0000000..b894e18
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/155_all_rename-ppc64-powerpc64.patch
@@ -0,0 +1,1544 @@
+diff -NurpP dietlibc-0.30-ppc-rename/diet.c dietlibc-0.30-ppc64-rename/diet.c
+--- dietlibc-0.30-ppc-rename/diet.c 2006-09-07 12:32:01.080419500 +0200
++++ dietlibc-0.30-ppc64-rename/diet.c 2006-09-07 12:35:38.679351000 +0200
+@@ -36,7 +36,7 @@ static const char* Os[] = {
+ "mips","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0,
+ "mipsel","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0,
+ "powerpc","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
+- "ppc64","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
++ "powerpc64","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
+ "s390","-Os","-fomit-frame-pointer",0,
+ "s390x","-Os","-fomit-frame-pointer",0,
+ "sh","-Os","-fomit-frame-pointer",0,
+@@ -154,7 +154,7 @@ int main(int argc,char *argv[]) {
+ shortplatform="powerpc";
+ #endif
+ #ifdef __powerpc64__
+- shortplatform="ppc64";
++ shortplatform="powerpc64";
+ #endif
+ #ifdef __i386__
+ shortplatform="i386";
+diff -NurpP dietlibc-0.30-ppc-rename/Makefile dietlibc-0.30-ppc64-rename/Makefile
+--- dietlibc-0.30-ppc-rename/Makefile 2006-09-07 12:44:19.878766750 +0200
++++ dietlibc-0.30-ppc64-rename/Makefile 2006-09-07 12:44:54.108906000 +0200
+@@ -31,7 +31,11 @@ ifeq ($(MYARCH),powerpc)
+ ARCH=powerpc
+ else
+ ifeq ($(MYARCH),ppc64)
+-ARCH=ppc64
++ARCH=powerpc64
++MYARCH=powerpc64
++else
++ifeq ($(MYARCH),powerpc64)
++ARCH=powerpc64
+ else
+ ifeq ($(MYARCH),arm)
+ ARCH=arm
+@@ -85,6 +89,7 @@ endif
+ endif
+ endif
+ endif
++endif
+
+ # ARCH=$(MYARCH)
+
+@@ -391,9 +396,9 @@ uninstall:
+ -rmdir $(DESTDIR)$(ILIBDIR) $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(BINDIR)
+
+ .PHONY: sparc powerpc mips arm alpha i386 parisc mipsel powerpc s390 sparc64
+-.PHONY: x86_64 ia64 ppc64 s390x
++.PHONY: x86_64 ia64 powerpc64 s390x
+
+-arm sparc alpha mips parisc s390 sparc64 x86_64 ia64 ppc64 s390x:
++arm sparc alpha mips parisc s390 sparc64 x86_64 ia64 powerpc64 s390x:
+ $(MAKE) ARCH=$@ CROSS=$@-linux- all
+
+ i386:
+@@ -404,7 +409,7 @@ else
+ endif
+
+ powerpc:
+-ifeq ($(MYARCH),ppc64)
++ifeq ($(MYARCH),powerpc64)
+ $(MAKE) ARCH=$@ CC="$(CC) -m32" all
+ else
+ $(MAKE) ARCH=$@ CROSS=$@-linux- all
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/clone.S dietlibc-0.30-ppc64-rename/powerpc64/clone.S
+--- dietlibc-0.30-ppc-rename/powerpc64/clone.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/clone.S 2006-09-07 12:24:13.091172000 +0200
+@@ -0,0 +1,56 @@
++#include <dietfeatures.h>
++#include "syscalls.h"
++#include <errno.h>
++
++.text
++.weak clone
++clone:
++.global __clone
++__clone:
++ cmpwi 4,0 /* check have non null child_stack pointer */
++ cmpwi cr1, 3,0 /* check have non null thread_funcion */
++ cror eq,4*cr1+eq,eq /* now if eq is set one is or both are zero */
++ beq .Lclone_error
++
++ stdu 1,-64(1) /* alloc some space on the stack */
++ std 29, 16(1) /* save r29,r30,r31 on stack */
++ std 30, 24(1)
++ std 31, 32(1)
++
++ rlwinm 4,4,0,0,27 /* mask out lower 4 bits */
++
++ /* move parameter to positions clone wants them */
++ mr 29,3 /* r29 = r3 fn */
++ mr 30,4 /* r30 = r4 stack */
++ mr 31,6 /* r31 = r6 arg */
++ mr 3, 5 /* r3 = r5 flags */
++
++ li 0, __NR_clone /* load syscall nr. */
++ sc
++
++ cmpwi cr1,3,0 /* compare return of syscall with 0 */
++ crandc 4*cr1+eq,4*cr1+eq,so
++ bne .Lclone_parent /* return was non zero -> .Lclone_parent */
++
++ /* we are the cloned process */
++ mr 1, 30 /* set stack pointer */
++ mtctr 29 /* set count register to fn ? */
++ mr 3, 31 /* set argument */
++ bctrl /* branch trough count register and link */
++ b _exit /* exit thread */
++
++.Lclone_parent:
++ ld 29,16(1) /* restore saved registers */
++ ld 30,24(1)
++ ld 31,32(1)
++ addi 1, 1,64 /* free stack */
++ bnslr+ /* had cloned a thread so return to parent */
++ b error_unified_syscall
++
++.Lclone_error:
++ li 3, EINVAL
++ b error_unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/__longjmp.S dietlibc-0.30-ppc64-rename/powerpc64/__longjmp.S
+--- dietlibc-0.30-ppc-rename/powerpc64/__longjmp.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/__longjmp.S 2006-09-07 12:24:13.091172000 +0200
+@@ -0,0 +1,58 @@
++#include <setjmp.h>
++
++ .quad .__longjmp,.TOC.@tocbase,0
++ .text
++ .size __longjmp,24
++ .type .__longjmp,@function
++ .globl .__longjmp
++.align 2
++.__longjmp:
++ ld 1,(JB_GPR1*8)(3)
++ ld 2,(JB_GPR2*8)(3)
++ ld 0,(JB_LR*8)(3)
++ ld 14,((JB_GPRS+0)*8)(3)
++ lfd 14,((JB_FPRS+0)*8)(3)
++ ld 15,((JB_GPRS+1)*8)(3)
++ lfd 15,((JB_FPRS+1)*8)(3)
++ ld 16,((JB_GPRS+2)*8)(3)
++ lfd 16,((JB_FPRS+2)*8)(3)
++ ld 17,((JB_GPRS+3)*8)(3)
++ lfd 17,((JB_FPRS+3)*8)(3)
++ ld 18,((JB_GPRS+4)*8)(3)
++ lfd 18,((JB_FPRS+4)*8)(3)
++ ld 19,((JB_GPRS+5)*8)(3)
++ lfd 19,((JB_FPRS+5)*8)(3)
++ ld 20,((JB_GPRS+6)*8)(3)
++ lfd 20,((JB_FPRS+6)*8)(3)
++ mtlr 0
++ ld 21,((JB_GPRS+7)*8)(3)
++ lfd 21,((JB_FPRS+7)*8)(3)
++ ld 22,((JB_GPRS+8)*8)(3)
++ lfd 22,((JB_FPRS+8)*8)(3)
++ ld 0,(JB_CR*8)(3)
++ ld 23,((JB_GPRS+9)*8)(3)
++ lfd 23,((JB_FPRS+9)*8)(3)
++ ld 24,((JB_GPRS+10)*8)(3)
++ lfd 24,((JB_FPRS+10)*8)(3)
++ ld 25,((JB_GPRS+11)*8)(3)
++ lfd 25,((JB_FPRS+11)*8)(3)
++ mtcrf 0xFF,0
++ ld 26,((JB_GPRS+12)*8)(3)
++ lfd 26,((JB_FPRS+12)*8)(3)
++ ld 27,((JB_GPRS+13)*8)(3)
++ lfd 27,((JB_FPRS+13)*8)(3)
++ ld 28,((JB_GPRS+14)*8)(3)
++ lfd 28,((JB_FPRS+14)*8)(3)
++ ld 29,((JB_GPRS+15)*8)(3)
++ lfd 29,((JB_FPRS+15)*8)(3)
++ ld 30,((JB_GPRS+16)*8)(3)
++ lfd 30,((JB_FPRS+16)*8)(3)
++ ld 31,((JB_GPRS+17)*8)(3)
++ lfd 31,((JB_FPRS+17)*8)(3)
++ mr 3,4
++ blr
++.size .__longjmp,.-.__longjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/Makefile.add dietlibc-0.30-ppc64-rename/powerpc64/Makefile.add
+--- dietlibc-0.30-ppc-rename/powerpc64/Makefile.add 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/Makefile.add 2006-05-07 06:16:59.000000000 +0200
+@@ -0,0 +1,5 @@
++
++CFLAGS+=-Os -mpowerpc64
++VPATH:=ppc64:syscalls.s:$(VPATH)
++
++CC+=-m64
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/setjmp.S dietlibc-0.30-ppc64-rename/powerpc64/setjmp.S
+--- dietlibc-0.30-ppc-rename/powerpc64/setjmp.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/setjmp.S 2006-09-07 12:24:13.091172000 +0200
+@@ -0,0 +1,63 @@
++#include <setjmp.h>
++
++#ifdef PIC
++#define JUMPTARGET(name) name##@plt
++#else
++#define JUMPTARGET(name) .name
++#endif
++
++ .quad .__sigsetjmp,.TOC.@tocbase,0
++ .text
++ .size __sigsetjmp,24
++ .type .__sigsetjmp,@function
++ .globl .__sigsetjmp
++.align 2
++.__sigsetjmp:
++ std 1,(JB_GPR1*8)(3)
++ mflr 0
++ std 2,(JB_GPR2*8)(3)
++ std 14,((JB_GPRS+0)*8)(3)
++ stfd 14,((JB_FPRS+0)*8)(3)
++ std 0,(JB_LR*8)(3)
++ std 15,((JB_GPRS+1)*8)(3)
++ stfd 15,((JB_FPRS+1)*8)(3)
++ mfcr 0
++ std 16,((JB_GPRS+2)*8)(3)
++ stfd 16,((JB_FPRS+2)*8)(3)
++ std 0,(JB_CR*8)(3)
++ std 17,((JB_GPRS+3)*8)(3)
++ stfd 17,((JB_FPRS+3)*8)(3)
++ std 18,((JB_GPRS+4)*8)(3)
++ stfd 18,((JB_FPRS+4)*8)(3)
++ std 19,((JB_GPRS+5)*8)(3)
++ stfd 19,((JB_FPRS+5)*8)(3)
++ std 20,((JB_GPRS+6)*8)(3)
++ stfd 20,((JB_FPRS+6)*8)(3)
++ std 21,((JB_GPRS+7)*8)(3)
++ stfd 21,((JB_FPRS+7)*8)(3)
++ std 22,((JB_GPRS+8)*8)(3)
++ stfd 22,((JB_FPRS+8)*8)(3)
++ std 23,((JB_GPRS+9)*8)(3)
++ stfd 23,((JB_FPRS+9)*8)(3)
++ std 24,((JB_GPRS+10)*8)(3)
++ stfd 24,((JB_FPRS+10)*8)(3)
++ std 25,((JB_GPRS+11)*8)(3)
++ stfd 25,((JB_FPRS+11)*8)(3)
++ std 26,((JB_GPRS+12)*8)(3)
++ stfd 26,((JB_FPRS+12)*8)(3)
++ std 27,((JB_GPRS+13)*8)(3)
++ stfd 27,((JB_FPRS+13)*8)(3)
++ std 28,((JB_GPRS+14)*8)(3)
++ stfd 28,((JB_FPRS+14)*8)(3)
++ std 29,((JB_GPRS+15)*8)(3)
++ stfd 29,((JB_FPRS+15)*8)(3)
++ std 30,((JB_GPRS+16)*8)(3)
++ stfd 30,((JB_FPRS+16)*8)(3)
++ std 31,((JB_GPRS+17)*8)(3)
++ stfd 31,((JB_FPRS+17)*8)(3)
++ b JUMPTARGET (__sigjmp_save)
++.size .__sigsetjmp,.-.__sigsetjmp
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/start.S dietlibc-0.30-ppc64-rename/powerpc64/start.S
+--- dietlibc-0.30-ppc-rename/powerpc64/start.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/start.S 2006-09-07 12:24:13.091172000 +0200
+@@ -0,0 +1,95 @@
++#include "dietfeatures.h"
++
++ .section ".text"
++ .align 2
++ .globl ._start
++ .type ._start,@function
++ .globl _start
++ .section ".opd","aw"
++_start:
++ .quad ._start
++ .quad .TOC.@tocbase, 0
++ .previous
++._start:
++
++/*
++ .section ".text"
++ .align 2
++ .globl ._start
++ .type ._start,@function
++ .globl _start
++ .section ".opd","aw"
++_start:
++ .quad ._start
++ .quad .TOC.@tocbase, 0
++ .previous
++._start:
++*/
++ /* Save the stack pointer, in case we're statically linked under Linux. */
++ mr 9,1
++ /* Set up an initial stack frame, and clear the LR. */
++ clrrdi 1,1,4
++ li 0,0
++ stdu 1,-128(1)
++ mtlr 0
++ std 0,0(1)
++
++ /* r9 contains the initial stack pointer
++ argc = (r9)
++ argv = (r9+4)
++ envp = argv+(argc+1)*4 */
++
++ lis 14,__libc_stack_end@highesta
++ ori 14,14,__libc_stack_end@highera
++ sldi 14,14,32
++ oris 14,14,__libc_stack_end@ha
++ std 9,__libc_stack_end@l(14)
++
++ ldu 3,0(9) /* argc */
++ addi 4,9,8 /* argv */
++ add 5,0,3 /* argc... */
++ addi 5,5,1 /* argc+1...*/
++ slwi 5,5,3 /* (argc+1)*8 */
++ add 5,5,4 /* argv+(argc+1)*8 */
++
++ lis 14,environ@highesta
++ ori 14,14,environ@highera
++ sldi 14,14,32
++ oris 14,14,environ@ha
++ std 5,environ@l(14)
++
++#ifdef WANT_DYNAMIC
++/* #warning dynamic */
++ mr 6,7
++ bl ._dyn_start
++#else
++/* #warning static */
++#define DOTIFY(name) .##name
++ bl DOTIFY(CALL_IN_STARTCODE)
++#endif
++ b .exit
++
++.LT_start:
++ .long 0
++ .quad 0x000c000000000000 | 0x0000200000000000 | 0x0000004000000000
++ .long .LT_start-._start
++ .short .LT_start_name_end-.LT_start_name_start
++.LT_start_name_start:
++ .ascii "_start"
++.LT_start_name_end:
++ .align 2
++ .size _start,.-_start
++
++/* Define a symbol for the first piece of initialized data. */
++ .section ".data"
++__data_start:
++
++/* this is needed for libgcc_eh.a - see gcc-3.4/gcc/config/rs6000/linux-unwind.h */
++ .weak __libc_stack_end
++ .lcomm __libc_stack_end,8,8
++ .type __libc_stack_end,@object
++
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/syscalls.h dietlibc-0.30-ppc64-rename/powerpc64/syscalls.h
+--- dietlibc-0.30-ppc-rename/powerpc64/syscalls.h 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/syscalls.h 2005-09-21 09:33:08.000000000 +0200
+@@ -0,0 +1,317 @@
++
++#define __NR_exit 1
++#define __NR_fork 2
++#define __NR_read 3
++#define __NR_write 4
++#define __NR_open 5
++#define __NR_close 6
++#define __NR_waitpid 7
++#define __NR_creat 8
++#define __NR_link 9
++#define __NR_unlink 10
++#define __NR_execve 11
++#define __NR_chdir 12
++#define __NR_time 13
++#define __NR_mknod 14
++#define __NR_chmod 15
++#define __NR_lchown 16
++#define __NR_break 17
++#define __NR_oldstat 18
++#define __NR_lseek 19
++#define __NR_getpid 20
++#define __NR_mount 21
++#define __NR_umount 22
++#define __NR_setuid 23
++#define __NR_getuid 24
++#define __NR_stime 25
++#define __NR_ptrace 26
++#define __NR_alarm 27
++#define __NR_oldfstat 28
++#define __NR_pause 29
++#define __NR_utime 30
++#define __NR_stty 31
++#define __NR_gtty 32
++#define __NR_access 33
++#define __NR_nice 34
++#define __NR_ftime 35
++#define __NR_sync 36
++#define __NR_kill 37
++#define __NR_rename 38
++#define __NR_mkdir 39
++#define __NR_rmdir 40
++#define __NR_dup 41
++#define __NR_pipe 42
++#define __NR_times 43
++#define __NR_prof 44
++#define __NR_brk 45
++#define __NR_setgid 46
++#define __NR_getgid 47
++#define __NR_signal 48
++#define __NR_geteuid 49
++#define __NR_getegid 50
++#define __NR_acct 51
++#define __NR_umount2 52
++#define __NR_lock 53
++#define __NR_ioctl 54
++#define __NR_fcntl 55
++#define __NR_mpx 56
++#define __NR_setpgid 57
++#define __NR_ulimit 58
++#define __NR_oldolduname 59
++#define __NR_umask 60
++#define __NR_chroot 61
++#define __NR_ustat 62
++#define __NR_dup2 63
++#define __NR_getppid 64
++#define __NR_getpgrp 65
++#define __NR_setsid 66
++#define __NR_sigaction 67
++#define __NR_sgetmask 68
++#define __NR_ssetmask 69
++#define __NR_setreuid 70
++#define __NR_setregid 71
++#define __NR_sigsuspend 72
++#define __NR_sigpending 73
++#define __NR_sethostname 74
++#define __NR_setrlimit 75
++#define __NR_getrlimit 76
++#define __NR_getrusage 77
++#define __NR_gettimeofday 78
++#define __NR_settimeofday 79
++#define __NR_getgroups 80
++#define __NR_setgroups 81
++#define __NR_select 82
++#define __NR_symlink 83
++#define __NR_oldlstat 84
++#define __NR_readlink 85
++#define __NR_uselib 86
++#define __NR_swapon 87
++#define __NR_reboot 88
++#define __NR_readdir 89
++#define __NR_mmap 90
++#define __NR_munmap 91
++#define __NR_truncate 92
++#define __NR_ftruncate 93
++#define __NR_fchmod 94
++#define __NR_fchown 95
++#define __NR_getpriority 96
++#define __NR_setpriority 97
++#define __NR_profil 98
++#define __NR_statfs 99
++#define __NR_fstatfs 100
++#define __NR_ioperm 101
++#define __NR_socketcall 102
++#define __NR_syslog 103
++#define __NR_setitimer 104
++#define __NR_getitimer 105
++#define __NR_stat 106
++#define __NR_lstat 107
++#define __NR_fstat 108
++#define __NR_olduname 109
++#define __NR_iopl 110
++#define __NR_vhangup 111
++#define __NR_idle 112
++#define __NR_vm86 113
++#define __NR_wait4 114
++#define __NR_swapoff 115
++#define __NR_sysinfo 116
++#define __NR_ipc 117
++#define __NR_fsync 118
++#define __NR_sigreturn 119
++#define __NR_clone 120
++#define __NR_setdomainname 121
++#define __NR_uname 122
++#define __NR_modify_ldt 123
++#define __NR_adjtimex 124
++#define __NR_mprotect 125
++#define __NR_sigprocmask 126
++#define __NR_create_module 127
++#define __NR_init_module 128
++#define __NR_delete_module 129
++#define __NR_get_kernel_syms 130
++#define __NR_quotactl 131
++#define __NR_getpgid 132
++#define __NR_fchdir 133
++#define __NR_bdflush 134
++#define __NR_sysfs 135
++#define __NR_personality 136
++#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
++#define __NR_setfsuid 138
++#define __NR_setfsgid 139
++#define __NR__llseek 140
++#define __NR_getdents 141
++#define __NR__newselect 142
++#define __NR_flock 143
++#define __NR_msync 144
++#define __NR_readv 145
++#define __NR_writev 146
++#define __NR_getsid 147
++#define __NR_fdatasync 148
++#define __NR__sysctl 149
++#define __NR_mlock 150
++#define __NR_munlock 151
++#define __NR_mlockall 152
++#define __NR_munlockall 153
++#define __NR_sched_setparam 154
++#define __NR_sched_getparam 155
++#define __NR_sched_setscheduler 156
++#define __NR_sched_getscheduler 157
++#define __NR_sched_yield 158
++#define __NR_sched_get_priority_max 159
++#define __NR_sched_get_priority_min 160
++#define __NR_sched_rr_get_interval 161
++#define __NR_nanosleep 162
++#define __NR_mremap 163
++#define __NR_setresuid 164
++#define __NR_getresuid 165
++#define __NR_query_module 166
++#define __NR_poll 167
++#define __NR_nfsservctl 168
++#define __NR_setresgid 169
++#define __NR_getresgid 170
++#define __NR_prctl 171
++#define __NR_rt_sigreturn 172
++#define __NR_rt_sigaction 173
++#define __NR_rt_sigprocmask 174
++#define __NR_rt_sigpending 175
++#define __NR_rt_sigtimedwait 176
++#define __NR_rt_sigqueueinfo 177
++#define __NR_rt_sigsuspend 178
++#define __NR_pread 179
++#define __NR_pwrite 180
++#define __NR_chown 181
++#define __NR_getcwd 182
++#define __NR_capget 183
++#define __NR_capset 184
++#define __NR_sigaltstack 185
++#define __NR_sendfile 186
++#define __NR_getpmsg 187 /* some people actually want streams */
++#define __NR_putpmsg 188 /* some people actually want streams */
++#define __NR_vfork 189
++#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
++#define __NR_readahead 191
++/* #define __NR_mmap2 192 32bit only */
++/* #define __NR_truncate64 193 32bit only */
++/* #define __NR_ftruncate64 194 32bit only */
++/* #define __NR_stat64 195 32bit only */
++/* #define __NR_lstat64 196 32bit only */
++/* #define __NR_fstat64 197 32bit only */
++#define __NR_pciconfig_read 198
++#define __NR_pciconfig_write 199
++#define __NR_pciconfig_iobase 200
++#define __NR_multiplexer 201
++#define __NR_getdents64 202
++#define __NR_pivot_root 203
++/* #define __NR_fcntl64 204 32bit only */
++#define __NR_madvise 205
++#define __NR_mincore 206
++#define __NR_gettid 207
++#define __NR_tkill 208
++#define __NR_setxattr 209
++#define __NR_lsetxattr 210
++#define __NR_fsetxattr 211
++#define __NR_getxattr 212
++#define __NR_lgetxattr 213
++#define __NR_fgetxattr 214
++#define __NR_listxattr 215
++#define __NR_llistxattr 216
++#define __NR_flistxattr 217
++#define __NR_removexattr 218
++#define __NR_lremovexattr 219
++#define __NR_fremovexattr 220
++#define __NR_futex 221
++#define __NR_sched_setaffinity 222
++#define __NR_sched_getaffinity 223
++/* 224 currently unused */
++#define __NR_tuxcall 225
++/* #define __NR_sendfile64 226 32bit only */
++#define __NR_io_setup 227
++#define __NR_io_destroy 228
++#define __NR_io_getevents 229
++#define __NR_io_submit 230
++#define __NR_io_cancel 231
++#define __NR_set_tid_address 232
++#define __NR_fadvise64 233
++#define __NR_exit_group 234
++#define __NR_lookup_dcookie 235
++#define __NR_epoll_create 236
++#define __NR_epoll_ctl 237
++#define __NR_epoll_wait 238
++#define __NR_remap_file_pages 239
++#define __NR_timer_create 240
++#define __NR_timer_settime 241
++#define __NR_timer_gettime 242
++#define __NR_timer_getoverrun 243
++#define __NR_timer_delete 244
++#define __NR_clock_settime 245
++#define __NR_clock_gettime 246
++#define __NR_clock_getres 247
++#define __NR_clock_nanosleep 248
++#define __NR_swapcontext 249
++#define __NR_tgkill 250
++#define __NR_utimes 251
++#define __NR_statfs64 252
++#define __NR_fstatfs64 253
++/* #define __NR_fadvise64_64 254 32bit only */
++#define __NR_rtas 255
++/* Number 256 is reserved for sys_debug_setcontext */
++/* Number 257 is reserved for vserver */
++/* Number 258 is reserved for new sys_remap_file_pages */
++#define __NR_mbind 259
++#define __NR_get_mempolicy 260
++#define __NR_set_mempolicy 261
++#define __NR_mq_open 262
++#define __NR_mq_unlink 263
++#define __NR_mq_timedsend 264
++#define __NR_mq_timedreceive 265
++#define __NR_mq_notify 266
++#define __NR_mq_getsetattr 267
++#define __NR_kexec_load 268
++#define __NR_add_key 269
++#define __NR_request_key 270
++#define __NR_keyctl 271
++#define __NR_waitid 272
++#define __NR_ioprio_set 273
++#define __NR_ioprio_get 274
++#define __NR_inotify_init 275
++#define __NR_inotify_add_watch 276
++#define __NR_inotify_rm_watch 277
++
++
++
++#define __diet_proto_common(sym) \
++ .section ".opd","aw"; \
++ .align 3; \
++sym: \
++ .quad .sym,.TOC.@tocbase,0; \
++ .previous; \
++ .size sym,24; \
++ .type .sym,@function
++
++#define diet_proto_weak(sym) \
++ .weak sym; \
++ .weak .sym; \
++ __diet_proto_common(sym)
++
++#define diet_proto(sym) \
++ .globl sym; \
++ .globl .sym; \
++ __diet_proto_common(sym)
++
++
++#define syscall_weak(name,wsym,sym) \
++.text; \
++diet_proto_weak(wsym); \
++diet_proto(sym); \
++.wsym: \
++.sym: \
++ li 0,__NR_##name; \
++ b __unified_syscall
++
++#define syscall(name,sym) \
++.text; \
++diet_proto(sym); \
++.sym: \
++ li 0,__NR_##name; \
++ b __unified_syscall
++
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/__testandset.S dietlibc-0.30-ppc64-rename/powerpc64/__testandset.S
+--- dietlibc-0.30-ppc-rename/powerpc64/__testandset.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/__testandset.S 2006-09-07 12:24:13.091172000 +0200
+@@ -0,0 +1,16 @@
++.global __testandset
++.type __testandset,@function
++.align 2
++__testandset:
++1: lwarx 5,0,3
++ li 0,1
++ stwcx. 0,0,3
++ bne- 1b
++ mr 3,5
++ blr
++.size __testandset,.-__testandset
++
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/umount.S dietlibc-0.30-ppc64-rename/powerpc64/umount.S
+--- dietlibc-0.30-ppc-rename/powerpc64/umount.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/umount.S 2006-09-07 12:24:13.091172000 +0200
+@@ -0,0 +1,12 @@
++#include "syscalls.h"
++
++ .text
++diet_proto(umount)
++.umount:
++ li 0, __NR_umount2
++ li 4, 0
++ b __unified_syscall
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-ppc-rename/powerpc64/unified.S dietlibc-0.30-ppc64-rename/powerpc64/unified.S
+--- dietlibc-0.30-ppc-rename/powerpc64/unified.S 1970-01-01 01:00:00.000000000 +0100
++++ dietlibc-0.30-ppc64-rename/powerpc64/unified.S 2006-09-07 12:24:13.091172000 +0200
+@@ -0,0 +1,75 @@
++#include <dietfeatures.h>
++#include "syscalls.h"
++
++ .text
++.exit:
++ .weak .exit
++._exit:
++ li 0,__NR_exit
++ .global __unified_syscall
++__unified_syscall:
++ sc
++ bnslr+
++
++ .global error_unified_syscall
++error_unified_syscall:
++
++#ifdef WANT_THREAD_SAFE
++ stdu 1,-128(1)
++ mflr 0
++ std 0,20(1)
++ std 3,12(1)
++ bl .__errno_location
++ ld 0,12(1)
++ stw 0,0(3)
++ ld 0,20(1)
++ mtlr 0
++ addi 1,1,128
++#else
++ lis 9,errno@highesta
++ ori 9,9,errno@highera
++ sldi 9,9,32
++ oris 9,9,errno@ha
++ stw 3,errno@l(9)
++#endif
++ li 3,-1
++
++/* here we go and "reuse" the return for weak-void functions */
++//#include "dietuglyweaks.h"
++.__thread_doexit:
++ .weak .__thread_doexit
++.__fflush_stdin:
++ .weak .__fflush_stdin
++.__fflush_stdout:
++ .weak .__fflush_stdout
++.__fflush_stderr:
++ .weak .__fflush_stderr
++.flockfile:
++ .weak .flockfile
++.funlockfile:
++ .weak .funlockfile
++.__nop:
++ .weak .__nop
++.__you_tried_to_link_a_dietlibc_object_against_glibc:
++ .weak .__you_tried_to_link_a_dietlibc_object_against_glibc
++
++ blr
++ .long 0
++ .byte 0,0,0,1,128,0,0,0
++ .size ._exit,.-._exit
++ .size .exit,.-.exit
++
++diet_proto_weak(__thread_doexit)
++diet_proto_weak(__fflush_stdin)
++diet_proto_weak(__fflush_stdout)
++diet_proto_weak(__fflush_stderr)
++diet_proto_weak(flockfile)
++diet_proto_weak(funlockfile)
++diet_proto_weak(__nop)
++diet_proto_weak(__you_tried_to_link_a_dietlibc_object_against_glibc)
++diet_proto_weak(exit)
++diet_proto(_exit)
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/clone.S dietlibc-0.30-ppc64-rename/ppc64/clone.S
+--- dietlibc-0.30-ppc-rename/ppc64/clone.S 2006-09-07 12:24:13.091172000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/clone.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,56 +0,0 @@
+-#include <dietfeatures.h>
+-#include "syscalls.h"
+-#include <errno.h>
+-
+-.text
+-.weak clone
+-clone:
+-.global __clone
+-__clone:
+- cmpwi 4,0 /* check have non null child_stack pointer */
+- cmpwi cr1, 3,0 /* check have non null thread_funcion */
+- cror eq,4*cr1+eq,eq /* now if eq is set one is or both are zero */
+- beq .Lclone_error
+-
+- stdu 1,-64(1) /* alloc some space on the stack */
+- std 29, 16(1) /* save r29,r30,r31 on stack */
+- std 30, 24(1)
+- std 31, 32(1)
+-
+- rlwinm 4,4,0,0,27 /* mask out lower 4 bits */
+-
+- /* move parameter to positions clone wants them */
+- mr 29,3 /* r29 = r3 fn */
+- mr 30,4 /* r30 = r4 stack */
+- mr 31,6 /* r31 = r6 arg */
+- mr 3, 5 /* r3 = r5 flags */
+-
+- li 0, __NR_clone /* load syscall nr. */
+- sc
+-
+- cmpwi cr1,3,0 /* compare return of syscall with 0 */
+- crandc 4*cr1+eq,4*cr1+eq,so
+- bne .Lclone_parent /* return was non zero -> .Lclone_parent */
+-
+- /* we are the cloned process */
+- mr 1, 30 /* set stack pointer */
+- mtctr 29 /* set count register to fn ? */
+- mr 3, 31 /* set argument */
+- bctrl /* branch trough count register and link */
+- b _exit /* exit thread */
+-
+-.Lclone_parent:
+- ld 29,16(1) /* restore saved registers */
+- ld 30,24(1)
+- ld 31,32(1)
+- addi 1, 1,64 /* free stack */
+- bnslr+ /* had cloned a thread so return to parent */
+- b error_unified_syscall
+-
+-.Lclone_error:
+- li 3, EINVAL
+- b error_unified_syscall
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/__longjmp.S dietlibc-0.30-ppc64-rename/ppc64/__longjmp.S
+--- dietlibc-0.30-ppc-rename/ppc64/__longjmp.S 2006-09-07 12:24:13.091172000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/__longjmp.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,58 +0,0 @@
+-#include <setjmp.h>
+-
+- .quad .__longjmp,.TOC.@tocbase,0
+- .text
+- .size __longjmp,24
+- .type .__longjmp,@function
+- .globl .__longjmp
+-.align 2
+-.__longjmp:
+- ld 1,(JB_GPR1*8)(3)
+- ld 2,(JB_GPR2*8)(3)
+- ld 0,(JB_LR*8)(3)
+- ld 14,((JB_GPRS+0)*8)(3)
+- lfd 14,((JB_FPRS+0)*8)(3)
+- ld 15,((JB_GPRS+1)*8)(3)
+- lfd 15,((JB_FPRS+1)*8)(3)
+- ld 16,((JB_GPRS+2)*8)(3)
+- lfd 16,((JB_FPRS+2)*8)(3)
+- ld 17,((JB_GPRS+3)*8)(3)
+- lfd 17,((JB_FPRS+3)*8)(3)
+- ld 18,((JB_GPRS+4)*8)(3)
+- lfd 18,((JB_FPRS+4)*8)(3)
+- ld 19,((JB_GPRS+5)*8)(3)
+- lfd 19,((JB_FPRS+5)*8)(3)
+- ld 20,((JB_GPRS+6)*8)(3)
+- lfd 20,((JB_FPRS+6)*8)(3)
+- mtlr 0
+- ld 21,((JB_GPRS+7)*8)(3)
+- lfd 21,((JB_FPRS+7)*8)(3)
+- ld 22,((JB_GPRS+8)*8)(3)
+- lfd 22,((JB_FPRS+8)*8)(3)
+- ld 0,(JB_CR*8)(3)
+- ld 23,((JB_GPRS+9)*8)(3)
+- lfd 23,((JB_FPRS+9)*8)(3)
+- ld 24,((JB_GPRS+10)*8)(3)
+- lfd 24,((JB_FPRS+10)*8)(3)
+- ld 25,((JB_GPRS+11)*8)(3)
+- lfd 25,((JB_FPRS+11)*8)(3)
+- mtcrf 0xFF,0
+- ld 26,((JB_GPRS+12)*8)(3)
+- lfd 26,((JB_FPRS+12)*8)(3)
+- ld 27,((JB_GPRS+13)*8)(3)
+- lfd 27,((JB_FPRS+13)*8)(3)
+- ld 28,((JB_GPRS+14)*8)(3)
+- lfd 28,((JB_FPRS+14)*8)(3)
+- ld 29,((JB_GPRS+15)*8)(3)
+- lfd 29,((JB_FPRS+15)*8)(3)
+- ld 30,((JB_GPRS+16)*8)(3)
+- lfd 30,((JB_FPRS+16)*8)(3)
+- ld 31,((JB_GPRS+17)*8)(3)
+- lfd 31,((JB_FPRS+17)*8)(3)
+- mr 3,4
+- blr
+-.size .__longjmp,.-.__longjmp
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/Makefile.add dietlibc-0.30-ppc64-rename/ppc64/Makefile.add
+--- dietlibc-0.30-ppc-rename/ppc64/Makefile.add 2006-05-07 06:16:59.000000000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/Makefile.add 1970-01-01 01:00:00.000000000 +0100
+@@ -1,5 +0,0 @@
+-
+-CFLAGS+=-Os -mpowerpc64
+-VPATH:=ppc64:syscalls.s:$(VPATH)
+-
+-CC+=-m64
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/setjmp.S dietlibc-0.30-ppc64-rename/ppc64/setjmp.S
+--- dietlibc-0.30-ppc-rename/ppc64/setjmp.S 2006-09-07 12:24:13.091172000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/setjmp.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,63 +0,0 @@
+-#include <setjmp.h>
+-
+-#ifdef PIC
+-#define JUMPTARGET(name) name##@plt
+-#else
+-#define JUMPTARGET(name) .name
+-#endif
+-
+- .quad .__sigsetjmp,.TOC.@tocbase,0
+- .text
+- .size __sigsetjmp,24
+- .type .__sigsetjmp,@function
+- .globl .__sigsetjmp
+-.align 2
+-.__sigsetjmp:
+- std 1,(JB_GPR1*8)(3)
+- mflr 0
+- std 2,(JB_GPR2*8)(3)
+- std 14,((JB_GPRS+0)*8)(3)
+- stfd 14,((JB_FPRS+0)*8)(3)
+- std 0,(JB_LR*8)(3)
+- std 15,((JB_GPRS+1)*8)(3)
+- stfd 15,((JB_FPRS+1)*8)(3)
+- mfcr 0
+- std 16,((JB_GPRS+2)*8)(3)
+- stfd 16,((JB_FPRS+2)*8)(3)
+- std 0,(JB_CR*8)(3)
+- std 17,((JB_GPRS+3)*8)(3)
+- stfd 17,((JB_FPRS+3)*8)(3)
+- std 18,((JB_GPRS+4)*8)(3)
+- stfd 18,((JB_FPRS+4)*8)(3)
+- std 19,((JB_GPRS+5)*8)(3)
+- stfd 19,((JB_FPRS+5)*8)(3)
+- std 20,((JB_GPRS+6)*8)(3)
+- stfd 20,((JB_FPRS+6)*8)(3)
+- std 21,((JB_GPRS+7)*8)(3)
+- stfd 21,((JB_FPRS+7)*8)(3)
+- std 22,((JB_GPRS+8)*8)(3)
+- stfd 22,((JB_FPRS+8)*8)(3)
+- std 23,((JB_GPRS+9)*8)(3)
+- stfd 23,((JB_FPRS+9)*8)(3)
+- std 24,((JB_GPRS+10)*8)(3)
+- stfd 24,((JB_FPRS+10)*8)(3)
+- std 25,((JB_GPRS+11)*8)(3)
+- stfd 25,((JB_FPRS+11)*8)(3)
+- std 26,((JB_GPRS+12)*8)(3)
+- stfd 26,((JB_FPRS+12)*8)(3)
+- std 27,((JB_GPRS+13)*8)(3)
+- stfd 27,((JB_FPRS+13)*8)(3)
+- std 28,((JB_GPRS+14)*8)(3)
+- stfd 28,((JB_FPRS+14)*8)(3)
+- std 29,((JB_GPRS+15)*8)(3)
+- stfd 29,((JB_FPRS+15)*8)(3)
+- std 30,((JB_GPRS+16)*8)(3)
+- stfd 30,((JB_FPRS+16)*8)(3)
+- std 31,((JB_GPRS+17)*8)(3)
+- stfd 31,((JB_FPRS+17)*8)(3)
+- b JUMPTARGET (__sigjmp_save)
+-.size .__sigsetjmp,.-.__sigsetjmp
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/start.S dietlibc-0.30-ppc64-rename/ppc64/start.S
+--- dietlibc-0.30-ppc-rename/ppc64/start.S 2006-09-07 12:24:13.091172000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/start.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,95 +0,0 @@
+-#include "dietfeatures.h"
+-
+- .section ".text"
+- .align 2
+- .globl ._start
+- .type ._start,@function
+- .globl _start
+- .section ".opd","aw"
+-_start:
+- .quad ._start
+- .quad .TOC.@tocbase, 0
+- .previous
+-._start:
+-
+-/*
+- .section ".text"
+- .align 2
+- .globl ._start
+- .type ._start,@function
+- .globl _start
+- .section ".opd","aw"
+-_start:
+- .quad ._start
+- .quad .TOC.@tocbase, 0
+- .previous
+-._start:
+-*/
+- /* Save the stack pointer, in case we're statically linked under Linux. */
+- mr 9,1
+- /* Set up an initial stack frame, and clear the LR. */
+- clrrdi 1,1,4
+- li 0,0
+- stdu 1,-128(1)
+- mtlr 0
+- std 0,0(1)
+-
+- /* r9 contains the initial stack pointer
+- argc = (r9)
+- argv = (r9+4)
+- envp = argv+(argc+1)*4 */
+-
+- lis 14,__libc_stack_end@highesta
+- ori 14,14,__libc_stack_end@highera
+- sldi 14,14,32
+- oris 14,14,__libc_stack_end@ha
+- std 9,__libc_stack_end@l(14)
+-
+- ldu 3,0(9) /* argc */
+- addi 4,9,8 /* argv */
+- add 5,0,3 /* argc... */
+- addi 5,5,1 /* argc+1...*/
+- slwi 5,5,3 /* (argc+1)*8 */
+- add 5,5,4 /* argv+(argc+1)*8 */
+-
+- lis 14,environ@highesta
+- ori 14,14,environ@highera
+- sldi 14,14,32
+- oris 14,14,environ@ha
+- std 5,environ@l(14)
+-
+-#ifdef WANT_DYNAMIC
+-/* #warning dynamic */
+- mr 6,7
+- bl ._dyn_start
+-#else
+-/* #warning static */
+-#define DOTIFY(name) .##name
+- bl DOTIFY(CALL_IN_STARTCODE)
+-#endif
+- b .exit
+-
+-.LT_start:
+- .long 0
+- .quad 0x000c000000000000 | 0x0000200000000000 | 0x0000004000000000
+- .long .LT_start-._start
+- .short .LT_start_name_end-.LT_start_name_start
+-.LT_start_name_start:
+- .ascii "_start"
+-.LT_start_name_end:
+- .align 2
+- .size _start,.-_start
+-
+-/* Define a symbol for the first piece of initialized data. */
+- .section ".data"
+-__data_start:
+-
+-/* this is needed for libgcc_eh.a - see gcc-3.4/gcc/config/rs6000/linux-unwind.h */
+- .weak __libc_stack_end
+- .lcomm __libc_stack_end,8,8
+- .type __libc_stack_end,@object
+-
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/syscalls.h dietlibc-0.30-ppc64-rename/ppc64/syscalls.h
+--- dietlibc-0.30-ppc-rename/ppc64/syscalls.h 2005-09-21 09:33:08.000000000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/syscalls.h 1970-01-01 01:00:00.000000000 +0100
+@@ -1,317 +0,0 @@
+-
+-#define __NR_exit 1
+-#define __NR_fork 2
+-#define __NR_read 3
+-#define __NR_write 4
+-#define __NR_open 5
+-#define __NR_close 6
+-#define __NR_waitpid 7
+-#define __NR_creat 8
+-#define __NR_link 9
+-#define __NR_unlink 10
+-#define __NR_execve 11
+-#define __NR_chdir 12
+-#define __NR_time 13
+-#define __NR_mknod 14
+-#define __NR_chmod 15
+-#define __NR_lchown 16
+-#define __NR_break 17
+-#define __NR_oldstat 18
+-#define __NR_lseek 19
+-#define __NR_getpid 20
+-#define __NR_mount 21
+-#define __NR_umount 22
+-#define __NR_setuid 23
+-#define __NR_getuid 24
+-#define __NR_stime 25
+-#define __NR_ptrace 26
+-#define __NR_alarm 27
+-#define __NR_oldfstat 28
+-#define __NR_pause 29
+-#define __NR_utime 30
+-#define __NR_stty 31
+-#define __NR_gtty 32
+-#define __NR_access 33
+-#define __NR_nice 34
+-#define __NR_ftime 35
+-#define __NR_sync 36
+-#define __NR_kill 37
+-#define __NR_rename 38
+-#define __NR_mkdir 39
+-#define __NR_rmdir 40
+-#define __NR_dup 41
+-#define __NR_pipe 42
+-#define __NR_times 43
+-#define __NR_prof 44
+-#define __NR_brk 45
+-#define __NR_setgid 46
+-#define __NR_getgid 47
+-#define __NR_signal 48
+-#define __NR_geteuid 49
+-#define __NR_getegid 50
+-#define __NR_acct 51
+-#define __NR_umount2 52
+-#define __NR_lock 53
+-#define __NR_ioctl 54
+-#define __NR_fcntl 55
+-#define __NR_mpx 56
+-#define __NR_setpgid 57
+-#define __NR_ulimit 58
+-#define __NR_oldolduname 59
+-#define __NR_umask 60
+-#define __NR_chroot 61
+-#define __NR_ustat 62
+-#define __NR_dup2 63
+-#define __NR_getppid 64
+-#define __NR_getpgrp 65
+-#define __NR_setsid 66
+-#define __NR_sigaction 67
+-#define __NR_sgetmask 68
+-#define __NR_ssetmask 69
+-#define __NR_setreuid 70
+-#define __NR_setregid 71
+-#define __NR_sigsuspend 72
+-#define __NR_sigpending 73
+-#define __NR_sethostname 74
+-#define __NR_setrlimit 75
+-#define __NR_getrlimit 76
+-#define __NR_getrusage 77
+-#define __NR_gettimeofday 78
+-#define __NR_settimeofday 79
+-#define __NR_getgroups 80
+-#define __NR_setgroups 81
+-#define __NR_select 82
+-#define __NR_symlink 83
+-#define __NR_oldlstat 84
+-#define __NR_readlink 85
+-#define __NR_uselib 86
+-#define __NR_swapon 87
+-#define __NR_reboot 88
+-#define __NR_readdir 89
+-#define __NR_mmap 90
+-#define __NR_munmap 91
+-#define __NR_truncate 92
+-#define __NR_ftruncate 93
+-#define __NR_fchmod 94
+-#define __NR_fchown 95
+-#define __NR_getpriority 96
+-#define __NR_setpriority 97
+-#define __NR_profil 98
+-#define __NR_statfs 99
+-#define __NR_fstatfs 100
+-#define __NR_ioperm 101
+-#define __NR_socketcall 102
+-#define __NR_syslog 103
+-#define __NR_setitimer 104
+-#define __NR_getitimer 105
+-#define __NR_stat 106
+-#define __NR_lstat 107
+-#define __NR_fstat 108
+-#define __NR_olduname 109
+-#define __NR_iopl 110
+-#define __NR_vhangup 111
+-#define __NR_idle 112
+-#define __NR_vm86 113
+-#define __NR_wait4 114
+-#define __NR_swapoff 115
+-#define __NR_sysinfo 116
+-#define __NR_ipc 117
+-#define __NR_fsync 118
+-#define __NR_sigreturn 119
+-#define __NR_clone 120
+-#define __NR_setdomainname 121
+-#define __NR_uname 122
+-#define __NR_modify_ldt 123
+-#define __NR_adjtimex 124
+-#define __NR_mprotect 125
+-#define __NR_sigprocmask 126
+-#define __NR_create_module 127
+-#define __NR_init_module 128
+-#define __NR_delete_module 129
+-#define __NR_get_kernel_syms 130
+-#define __NR_quotactl 131
+-#define __NR_getpgid 132
+-#define __NR_fchdir 133
+-#define __NR_bdflush 134
+-#define __NR_sysfs 135
+-#define __NR_personality 136
+-#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
+-#define __NR_setfsuid 138
+-#define __NR_setfsgid 139
+-#define __NR__llseek 140
+-#define __NR_getdents 141
+-#define __NR__newselect 142
+-#define __NR_flock 143
+-#define __NR_msync 144
+-#define __NR_readv 145
+-#define __NR_writev 146
+-#define __NR_getsid 147
+-#define __NR_fdatasync 148
+-#define __NR__sysctl 149
+-#define __NR_mlock 150
+-#define __NR_munlock 151
+-#define __NR_mlockall 152
+-#define __NR_munlockall 153
+-#define __NR_sched_setparam 154
+-#define __NR_sched_getparam 155
+-#define __NR_sched_setscheduler 156
+-#define __NR_sched_getscheduler 157
+-#define __NR_sched_yield 158
+-#define __NR_sched_get_priority_max 159
+-#define __NR_sched_get_priority_min 160
+-#define __NR_sched_rr_get_interval 161
+-#define __NR_nanosleep 162
+-#define __NR_mremap 163
+-#define __NR_setresuid 164
+-#define __NR_getresuid 165
+-#define __NR_query_module 166
+-#define __NR_poll 167
+-#define __NR_nfsservctl 168
+-#define __NR_setresgid 169
+-#define __NR_getresgid 170
+-#define __NR_prctl 171
+-#define __NR_rt_sigreturn 172
+-#define __NR_rt_sigaction 173
+-#define __NR_rt_sigprocmask 174
+-#define __NR_rt_sigpending 175
+-#define __NR_rt_sigtimedwait 176
+-#define __NR_rt_sigqueueinfo 177
+-#define __NR_rt_sigsuspend 178
+-#define __NR_pread 179
+-#define __NR_pwrite 180
+-#define __NR_chown 181
+-#define __NR_getcwd 182
+-#define __NR_capget 183
+-#define __NR_capset 184
+-#define __NR_sigaltstack 185
+-#define __NR_sendfile 186
+-#define __NR_getpmsg 187 /* some people actually want streams */
+-#define __NR_putpmsg 188 /* some people actually want streams */
+-#define __NR_vfork 189
+-#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
+-#define __NR_readahead 191
+-/* #define __NR_mmap2 192 32bit only */
+-/* #define __NR_truncate64 193 32bit only */
+-/* #define __NR_ftruncate64 194 32bit only */
+-/* #define __NR_stat64 195 32bit only */
+-/* #define __NR_lstat64 196 32bit only */
+-/* #define __NR_fstat64 197 32bit only */
+-#define __NR_pciconfig_read 198
+-#define __NR_pciconfig_write 199
+-#define __NR_pciconfig_iobase 200
+-#define __NR_multiplexer 201
+-#define __NR_getdents64 202
+-#define __NR_pivot_root 203
+-/* #define __NR_fcntl64 204 32bit only */
+-#define __NR_madvise 205
+-#define __NR_mincore 206
+-#define __NR_gettid 207
+-#define __NR_tkill 208
+-#define __NR_setxattr 209
+-#define __NR_lsetxattr 210
+-#define __NR_fsetxattr 211
+-#define __NR_getxattr 212
+-#define __NR_lgetxattr 213
+-#define __NR_fgetxattr 214
+-#define __NR_listxattr 215
+-#define __NR_llistxattr 216
+-#define __NR_flistxattr 217
+-#define __NR_removexattr 218
+-#define __NR_lremovexattr 219
+-#define __NR_fremovexattr 220
+-#define __NR_futex 221
+-#define __NR_sched_setaffinity 222
+-#define __NR_sched_getaffinity 223
+-/* 224 currently unused */
+-#define __NR_tuxcall 225
+-/* #define __NR_sendfile64 226 32bit only */
+-#define __NR_io_setup 227
+-#define __NR_io_destroy 228
+-#define __NR_io_getevents 229
+-#define __NR_io_submit 230
+-#define __NR_io_cancel 231
+-#define __NR_set_tid_address 232
+-#define __NR_fadvise64 233
+-#define __NR_exit_group 234
+-#define __NR_lookup_dcookie 235
+-#define __NR_epoll_create 236
+-#define __NR_epoll_ctl 237
+-#define __NR_epoll_wait 238
+-#define __NR_remap_file_pages 239
+-#define __NR_timer_create 240
+-#define __NR_timer_settime 241
+-#define __NR_timer_gettime 242
+-#define __NR_timer_getoverrun 243
+-#define __NR_timer_delete 244
+-#define __NR_clock_settime 245
+-#define __NR_clock_gettime 246
+-#define __NR_clock_getres 247
+-#define __NR_clock_nanosleep 248
+-#define __NR_swapcontext 249
+-#define __NR_tgkill 250
+-#define __NR_utimes 251
+-#define __NR_statfs64 252
+-#define __NR_fstatfs64 253
+-/* #define __NR_fadvise64_64 254 32bit only */
+-#define __NR_rtas 255
+-/* Number 256 is reserved for sys_debug_setcontext */
+-/* Number 257 is reserved for vserver */
+-/* Number 258 is reserved for new sys_remap_file_pages */
+-#define __NR_mbind 259
+-#define __NR_get_mempolicy 260
+-#define __NR_set_mempolicy 261
+-#define __NR_mq_open 262
+-#define __NR_mq_unlink 263
+-#define __NR_mq_timedsend 264
+-#define __NR_mq_timedreceive 265
+-#define __NR_mq_notify 266
+-#define __NR_mq_getsetattr 267
+-#define __NR_kexec_load 268
+-#define __NR_add_key 269
+-#define __NR_request_key 270
+-#define __NR_keyctl 271
+-#define __NR_waitid 272
+-#define __NR_ioprio_set 273
+-#define __NR_ioprio_get 274
+-#define __NR_inotify_init 275
+-#define __NR_inotify_add_watch 276
+-#define __NR_inotify_rm_watch 277
+-
+-
+-
+-#define __diet_proto_common(sym) \
+- .section ".opd","aw"; \
+- .align 3; \
+-sym: \
+- .quad .sym,.TOC.@tocbase,0; \
+- .previous; \
+- .size sym,24; \
+- .type .sym,@function
+-
+-#define diet_proto_weak(sym) \
+- .weak sym; \
+- .weak .sym; \
+- __diet_proto_common(sym)
+-
+-#define diet_proto(sym) \
+- .globl sym; \
+- .globl .sym; \
+- __diet_proto_common(sym)
+-
+-
+-#define syscall_weak(name,wsym,sym) \
+-.text; \
+-diet_proto_weak(wsym); \
+-diet_proto(sym); \
+-.wsym: \
+-.sym: \
+- li 0,__NR_##name; \
+- b __unified_syscall
+-
+-#define syscall(name,sym) \
+-.text; \
+-diet_proto(sym); \
+-.sym: \
+- li 0,__NR_##name; \
+- b __unified_syscall
+-
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/__testandset.S dietlibc-0.30-ppc64-rename/ppc64/__testandset.S
+--- dietlibc-0.30-ppc-rename/ppc64/__testandset.S 2006-09-07 12:24:13.091172000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/__testandset.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,16 +0,0 @@
+-.global __testandset
+-.type __testandset,@function
+-.align 2
+-__testandset:
+-1: lwarx 5,0,3
+- li 0,1
+- stwcx. 0,0,3
+- bne- 1b
+- mr 3,5
+- blr
+-.size __testandset,.-__testandset
+-
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/umount.S dietlibc-0.30-ppc64-rename/ppc64/umount.S
+--- dietlibc-0.30-ppc-rename/ppc64/umount.S 2006-09-07 12:24:13.091172000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/umount.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,12 +0,0 @@
+-#include "syscalls.h"
+-
+- .text
+-diet_proto(umount)
+-.umount:
+- li 0, __NR_umount2
+- li 4, 0
+- b __unified_syscall
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-ppc-rename/ppc64/unified.S dietlibc-0.30-ppc64-rename/ppc64/unified.S
+--- dietlibc-0.30-ppc-rename/ppc64/unified.S 2006-09-07 12:24:13.091172000 +0200
++++ dietlibc-0.30-ppc64-rename/ppc64/unified.S 1970-01-01 01:00:00.000000000 +0100
+@@ -1,75 +0,0 @@
+-#include <dietfeatures.h>
+-#include "syscalls.h"
+-
+- .text
+-.exit:
+- .weak .exit
+-._exit:
+- li 0,__NR_exit
+- .global __unified_syscall
+-__unified_syscall:
+- sc
+- bnslr+
+-
+- .global error_unified_syscall
+-error_unified_syscall:
+-
+-#ifdef WANT_THREAD_SAFE
+- stdu 1,-128(1)
+- mflr 0
+- std 0,20(1)
+- std 3,12(1)
+- bl .__errno_location
+- ld 0,12(1)
+- stw 0,0(3)
+- ld 0,20(1)
+- mtlr 0
+- addi 1,1,128
+-#else
+- lis 9,errno@highesta
+- ori 9,9,errno@highera
+- sldi 9,9,32
+- oris 9,9,errno@ha
+- stw 3,errno@l(9)
+-#endif
+- li 3,-1
+-
+-/* here we go and "reuse" the return for weak-void functions */
+-//#include "dietuglyweaks.h"
+-.__thread_doexit:
+- .weak .__thread_doexit
+-.__fflush_stdin:
+- .weak .__fflush_stdin
+-.__fflush_stdout:
+- .weak .__fflush_stdout
+-.__fflush_stderr:
+- .weak .__fflush_stderr
+-.flockfile:
+- .weak .flockfile
+-.funlockfile:
+- .weak .funlockfile
+-.__nop:
+- .weak .__nop
+-.__you_tried_to_link_a_dietlibc_object_against_glibc:
+- .weak .__you_tried_to_link_a_dietlibc_object_against_glibc
+-
+- blr
+- .long 0
+- .byte 0,0,0,1,128,0,0,0
+- .size ._exit,.-._exit
+- .size .exit,.-.exit
+-
+-diet_proto_weak(__thread_doexit)
+-diet_proto_weak(__fflush_stdin)
+-diet_proto_weak(__fflush_stdout)
+-diet_proto_weak(__fflush_stderr)
+-diet_proto_weak(flockfile)
+-diet_proto_weak(funlockfile)
+-diet_proto_weak(__nop)
+-diet_proto_weak(__you_tried_to_link_a_dietlibc_object_against_glibc)
+-diet_proto_weak(exit)
+-diet_proto(_exit)
+-
+-#ifdef __ELF__
+-.section .note.GNU-stack,"",%progbits
+-#endif
+diff -NurpP dietlibc-0.30-ppc-rename/syscalls.h dietlibc-0.30-ppc64-rename/syscalls.h
+--- dietlibc-0.30-ppc-rename/syscalls.h 2006-09-07 12:28:54.384751750 +0200
++++ dietlibc-0.30-ppc64-rename/syscalls.h 2006-09-07 12:35:50.997959250 +0200
+@@ -12,7 +12,7 @@
+ #endif
+
+ #elif defined(__powerpc64__)
+-#include "ppc64/syscalls.h"
++#include "powerpc64/syscalls.h"
+
+ #elif defined(__powerpc__)
+ #include "powerpc/syscalls.h"
diff --git a/dietlibc/patches/0.30-r2/200_all_sparc64-is-32bit.patch b/dietlibc/patches/0.30-r2/200_all_sparc64-is-32bit.patch
new file mode 100644
index 0000000..642154c
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/200_all_sparc64-is-32bit.patch
@@ -0,0 +1,14 @@
+Index: dietlibc-0.30/Makefile
+===================================================================
+--- dietlibc-0.30.orig/Makefile
++++ dietlibc-0.30/Makefile
+@@ -44,7 +44,8 @@ ifeq ($(MYARCH),sparc)
+ ARCH=sparc
+ else
+ ifeq ($(MYARCH),sparc64)
+-ARCH=sparc64
++ARCH=sparc
++MYARCH=sparc
+ else
+ ifeq ($(MYARCH),s390)
+ ARCH=s390
diff --git a/dietlibc/patches/0.30-r2/250_all_hppa-iitlb.patch b/dietlibc/patches/0.30-r2/250_all_hppa-iitlb.patch
new file mode 100644
index 0000000..a3a2044
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/250_all_hppa-iitlb.patch
@@ -0,0 +1,13 @@
+Index: dietlibc-0.30/parisc/clone.S
+===================================================================
+--- dietlibc-0.30.orig/parisc/clone.S
++++ dietlibc-0.30/parisc/clone.S
+@@ -37,7 +37,7 @@ __clone:
+ bl _exit,%r2 /* exit thread */
+ copy %r28,%r26 /* return -> arg0 */
+
+- iitlbp %r0,(%r0) /* DIE ! DIE ! */
++ iitlbp %r0,(%sr0,%r0) /* DIE ! DIE ! */
+
+ #ifdef __ELF__
+ .section .note.GNU-stack,"",%progbits
diff --git a/dietlibc/patches/0.30-r2/300_all_mips-pic.patch b/dietlibc/patches/0.30-r2/300_all_mips-pic.patch
new file mode 100644
index 0000000..eee85eb
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/300_all_mips-pic.patch
@@ -0,0 +1,25 @@
+Index: dietlibc-0.30/diet.c
+===================================================================
+--- dietlibc-0.30.orig/diet.c
++++ dietlibc-0.30/diet.c
+@@ -33,7 +33,7 @@ static const char* Os[] = {
+ "sparc64","-Os","-m64","-mhard-quad-float",0,
+ "alpha","-Os","-fomit-frame-pointer",0,
+ "arm","-Os","-fomit-frame-pointer",0,
+- "mips","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0,
++ "mips","-Os","-fomit-frame-pointer",0,
+ "mipsel","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0,
+ "powerpc","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
+ "powerpc64","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
+Index: dietlibc-0.30/mips/Makefile.add
+===================================================================
+--- dietlibc-0.30.orig/mips/Makefile.add
++++ dietlibc-0.30/mips/Makefile.add
+@@ -9,6 +9,6 @@
+ ifeq ($(CROSS),mips-linux-)
+ ENDIAN=-meb
+ endif
+-CFLAGS+=$(ENDIAN) -Os -G 0 -fstrict-aliasing -fno-pic -mno-abicalls
++CFLAGS+=$(ENDIAN) -Os -fstrict-aliasing
+ VPATH:=mips:syscalls.s:$(VPATH)
+ LIBOBJ+=$(OBJDIR)/pread64.o $(OBJDIR)/pwrite64.o $(OBJDIR)/divdi3.o
diff --git a/dietlibc/patches/0.30-r2/350_all_ia64-fno-omit-frame-pointer.patch b/dietlibc/patches/0.30-r2/350_all_ia64-fno-omit-frame-pointer.patch
new file mode 100644
index 0000000..104072d
--- /dev/null
+++ b/dietlibc/patches/0.30-r2/350_all_ia64-fno-omit-frame-pointer.patch
@@ -0,0 +1,13 @@
+Index: dietlibc-0.30/diet.c
+===================================================================
+--- dietlibc-0.30.orig/diet.c
++++ dietlibc-0.30/diet.c
+@@ -40,7 +40,7 @@ static const char* Os[] = {
+ "s390","-Os","-fomit-frame-pointer",0,
+ "s390x","-Os","-fomit-frame-pointer",0,
+ "sh","-Os","-fomit-frame-pointer",0,
+- "ia64","-Os","-fno-omit-frame-pointer",0,
++ "ia64","-Os",0,
+ "x86_64","-Os","-fstrict-aliasing","-momit-leaf-frame-pointer","-mfancy-math-387",0,
+ 0};
+