diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-06-26 22:32:15 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-29 13:30:59 +0100 |
commit | 55e369dd90c3e9b17eee465edfaac350fba55295 (patch) | |
tree | 67d95180eb76ed53ce78ef03cef0d4de67f750dd /meta/recipes-core/uclibc/uclibc-git/dup3.patch | |
parent | e5c81d7a0e86e216c1c3881c1a4b4f836e5fbd0e (diff) | |
download | poky-55e369dd90c3e9b17eee465edfaac350fba55295.tar.gz |
uclibc-git: Update for building systemd
This adds uclibc patches to build systemd there are
new functions that are used by systemd which are needed
Additionally when using gold linker to build userspace
based on uclibc there are spurious hidden symbol that
show up in librt.so and libc.so which should not exist
So we patch uclibc for that
(From OE-Core rev: ecffa7571ed27a75e3248cb860affae233249440)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/dup3.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/dup3.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/dup3.patch b/meta/recipes-core/uclibc/uclibc-git/dup3.patch new file mode 100644 index 0000000000..481f23b2c4 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/dup3.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Implement dup3() | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Index: git/libc/sysdeps/linux/common/dup3.c | ||
6 | =================================================================== | ||
7 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
8 | +++ git/libc/sysdeps/linux/common/dup3.c 2012-01-27 07:40:52.802900849 -0800 | ||
9 | @@ -0,0 +1,15 @@ | ||
10 | +/* vi: set sw=4 ts=4: */ | ||
11 | +/* | ||
12 | + * dup3() for uClibc | ||
13 | + * | ||
14 | + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> | ||
15 | + * | ||
16 | + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. | ||
17 | + */ | ||
18 | + | ||
19 | +#include <sys/syscall.h> | ||
20 | +#include <unistd.h> | ||
21 | + | ||
22 | + | ||
23 | +_syscall3(int, dup3, int, oldfd, int, newfd, int, flags) | ||
24 | +libc_hidden_def(dup3) | ||
25 | Index: git/include/unistd.h | ||
26 | =================================================================== | ||
27 | --- git.orig/include/unistd.h 2012-01-27 01:19:17.521792781 -0800 | ||
28 | +++ git/include/unistd.h 2012-01-27 07:40:03.106898447 -0800 | ||
29 | @@ -512,6 +512,8 @@ | ||
30 | /* Duplicate FD to FD2, closing FD2 and making it open on the same file. */ | ||
31 | extern int dup2 (int __fd, int __fd2) __THROW; | ||
32 | libc_hidden_proto(dup2) | ||
33 | +extern int dup3 (int __fd, int __fd2, int __flags) __THROW; | ||
34 | +libc_hidden_proto(dup3) | ||
35 | |||
36 | /* NULL-terminated array of "NAME=VALUE" environment variables. */ | ||
37 | extern char **__environ; | ||