* updated yet more dir-less .cache DEPs
[t2sde.git] / package / develop / binutils / ppc-pagesize.patch
blob9db99409584878fcc0d36fe83bf9e99927b5d55f
1 Avoid about three (3) times larger small "coreutils" binaries
2 on 32-bit PowerPC. Also to keep initrd size requirements low
3 (e.g. for PS3).
5 - René Rebe <rene@exactcode.de>
7 --- binutils-2.38/bfd/elf32-ppc.c.vanilla 2022-05-26 13:25:30.407138627 +0200
8 +++ binutils-2.38/bfd/elf32-ppc.c 2022-05-26 13:26:14.051136887 +0200
9 @@ -10371,7 +10371,7 @@
10 #define ELF_ARCH bfd_arch_powerpc
11 #define ELF_TARGET_ID PPC32_ELF_DATA
12 #define ELF_MACHINE_CODE EM_PPC
13 -#define ELF_MAXPAGESIZE 0x10000
14 +#define ELF_MAXPAGESIZE 0x1000
15 #define ELF_COMMONPAGESIZE 0x1000
16 #define ELF_RELROPAGESIZE ELF_MAXPAGESIZE
17 #define elf_info_to_howto ppc_elf_info_to_howto
18 #--- binutils-2.38/bfd/elf64-ppc.c.vanilla 2022-05-26 13:24:48.815140285 +0200
19 #+++ binutils-2.38/bfd/elf64-ppc.c 2022-05-26 13:25:27.729138734 +0200
20 #@@ -73,7 +73,7 @@
21 #define ELF_ARCH bfd_arch_powerpc
22 #define ELF_TARGET_ID PPC64_ELF_DATA
23 #define ELF_MACHINE_CODE EM_PPC64
24 -#define ELF_MAXPAGESIZE 0x10000
25 +#define ELF_MAXPAGESIZE 0x1000
26 #define ELF_COMMONPAGESIZE 0x1000
27 #define ELF_RELROPAGESIZE ELF_MAXPAGESIZE
28 #define elf_info_to_howto ppc64_elf_info_to_howto