Dash:
[t2.git] / package / base / dietlibc / mips64.patch
blobed62b9f2f4eb3e250b7fe5ec5a74210547ca861c
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../dietlibc/mips64.patch
5 # Copyright (C) 2010 - 2018 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 MIPS64 support for dietlibc, most stuff works now.
18 The patch depends on: cp -ar mips{,64} as base.
20 - Rene Rebe <rene@exactcode.de>
22 --- dietlibc-0.32/syscalls.h.vanilla 2011-01-11 15:55:47.687079252 +0000
23 +++ dietlibc-0.32/syscalls.h 2011-01-11 15:57:14.183804303 +0000
24 @@ -17,6 +17,9 @@
25 #elif defined(__powerpc__)
26 #include "ppc/syscalls.h"
28 +#elif defined(__mips64)
29 +#include "mips64/syscalls.h"
31 #elif defined(__mips__)
32 #include "mips/syscalls.h"
34 --- dietlibc-0.33/diet.c.vanilla 2014-06-03 16:47:32.000000000 +0200
35 +++ dietlibc-0.33/diet.c 2014-06-03 16:47:54.000000000 +0200
36 @@ -34,6 +34,7 @@
37 "alpha","-Os","-fomit-frame-pointer",0,
38 "arm","-Os","-fomit-frame-pointer",0,
39 "mips","-Os","-fomit-frame-pointer","-march=mips2",0,
40 + "mips64","-Os","-fomit-frame-pointer","-mno-abicalls","-fno-pic","-G","0",0,
41 "mipsel","-Os","-fomit-frame-pointer","-march=mips2",0,
42 "ppc","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
43 "ppc64","-Os","-fomit-frame-pointer","-mpowerpc-gpopt","-mpowerpc-gfxopt",0,
44 @@ -173,6 +174,9 @@
45 #ifdef __mips__
46 shortplatform="mips";
47 #endif
48 +#ifdef __mips64
49 + shortplatform="mips64";
50 +#endif
51 #ifdef __s390x__
52 shortplatform="s390x";
53 #else
54 --- dietlibc-0.34/mips/syscalls.h.vanilla 2018-10-23 12:45:00.729379888 +0000
55 +++ dietlibc-0.34/mips/syscalls.h 2018-10-23 12:46:00.513378989 +0000
56 @@ -371,7 +371,7 @@
57 #define __NR_pkey_alloc (__NR_Linux + 364)
58 #define __NR_pkey_free (__NR_Linux + 365)
60 -#elif _MIPS_SIM == _ABI64
61 +#elif 1 /* _MIPS_SIM == _ABI64 */
64 * Linux 64-bit syscalls are in the range from 5000 to 5999.