From a84c949e3759598fcd1b4c3dac5dd20a2db5df4b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 20 Aug 2017 11:32:37 +0200 Subject: community/dietlibc: define socketcall in PIC case too --- community/dietlibc/PKGBUILD | 6 ++++++ .../dietlib-i386-socketcall-also-with-pic.patch | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 community/dietlibc/PKGBUILD create mode 100644 community/dietlibc/dietlib-i386-socketcall-also-with-pic.patch (limited to 'community') diff --git a/community/dietlibc/PKGBUILD b/community/dietlibc/PKGBUILD new file mode 100644 index 00000000..85d12a1d --- /dev/null +++ b/community/dietlibc/PKGBUILD @@ -0,0 +1,6 @@ +source+=("dietlib-i386-socketcall-also-with-pic.patch") +md5sums+=('cc99f41e0ac6ef641d4a96de9161b997') +prepare() { + cd "$srcdir"/$pkgname-$pkgver + patch -p1 -i "${srcdir}"/dietlib-i386-socketcall-also-with-pic.patch +} 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 -- cgit v1.2.3-70-g09d2