Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/dietlibc/dietlib-i386-socketcall-also-with-pic.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/dietlibc/dietlib-i386-socketcall-also-with-pic.patch')
-rw-r--r--community/dietlibc/dietlib-i386-socketcall-also-with-pic.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/dietlibc/dietlib-i386-socketcall-also-with-pic.patch b/community/dietlibc/dietlib-i386-socketcall-also-with-pic.patch
new file mode 100644
index 00000000..5714fab9
--- /dev/null
+++ b/community/dietlibc/dietlib-i386-socketcall-also-with-pic.patch
@@ -0,0 +1,19 @@
+diff --git a/i386/syscalls.h b/i386/syscalls.h
+index c4c98629..94f9be53 100644
+--- a/i386/syscalls.h
++++ b/i386/syscalls.h
+@@ -368,7 +368,6 @@ sym: \
+ .Lend##sym: ; \
+ .size sym,.Lend##sym-sym
+
+-#ifndef __PIC__
+ #define __socketcall(name,NAME) \
+ .text; \
+ .type name,@function; \
+@@ -381,6 +380,3 @@ __libc_##name: ; \
+ jmp socketcall; \
+ .Lend##name:; \
+ .size name,.Lend##name-name
+-#else
+-#define __socketcall(name,NAME)
+-#endif