diff options
Diffstat (limited to 'meta/recipes-devtools/patchelf/patchelf/Increase-maxSize-to-64MB.patch')
-rw-r--r-- | meta/recipes-devtools/patchelf/patchelf/Increase-maxSize-to-64MB.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/patchelf/patchelf/Increase-maxSize-to-64MB.patch b/meta/recipes-devtools/patchelf/patchelf/Increase-maxSize-to-64MB.patch new file mode 100644 index 0000000000..49050a18d2 --- /dev/null +++ b/meta/recipes-devtools/patchelf/patchelf/Increase-maxSize-to-64MB.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From e3658740ec100e4c8cf83295460b032979e1a99a Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Berton <fabio.berton@ossystems.com.br> | ||
3 | Date: Fri, 9 Sep 2016 18:21:32 -0300 | ||
4 | Subject: [PATCH] Increase maxSize to 64MB | ||
5 | Organization: O.S. Systems Software LTDA. | ||
6 | |||
7 | Fix error: | ||
8 | |||
9 | / | ||
10 | |ERROR: qemu-native-2.5.0-r1 do_populate_sysroot_setscene: '('patchelf-uninative', | ||
11 | |'--set-interpreter', '../build/tmp/sysroots-uninative/x86_64-linux/lib/ | ||
12 | |ld-linux-x86-64.so.2', '../build/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/ | ||
13 | |sstate-install-populate_sysroot/x86_64-linux/usr/bin/qemu-mips64')' | ||
14 | |failed with exit code 1 and the following output: | ||
15 | |warning: working around a Linux kernel bug by creating a hole of 36032512 | ||
16 | |bytes in ‘../build/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/ | ||
17 | |sstate-install-populate_sysroot/x86_64-linux/usr/bin/qemu-mips64’ | ||
18 | |maximum file size exceeded | ||
19 | \ | ||
20 | |||
21 | Similar issue is discussed here: | ||
22 | https://github.com/NixOS/patchelf/issues/47 | ||
23 | |||
24 | Upstream-Status: Inappropriate [embedded specific] | ||
25 | |||
26 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> | ||
27 | --- | ||
28 | src/patchelf.cc | 2 +- | ||
29 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
30 | |||
31 | diff --git a/src/patchelf.cc b/src/patchelf.cc | ||
32 | index a59c12d..0fd7355 100644 | ||
33 | --- a/src/patchelf.cc | ||
34 | +++ b/src/patchelf.cc | ||
35 | @@ -279,7 +279,7 @@ static void readFile(string fileName) | ||
36 | struct stat st; | ||
37 | if (stat(fileName.c_str(), &st) != 0) error("stat"); | ||
38 | fileSize = st.st_size; | ||
39 | - maxSize = fileSize + 32 * 1024 * 1024; | ||
40 | + maxSize = fileSize + 64 * 1024 * 1024; | ||
41 | |||
42 | contents = (unsigned char *) malloc(fileSize + maxSize); | ||
43 | if (!contents) abort(); | ||
44 | -- | ||
45 | 2.1.4 | ||
46 | |||