yann@1: --- binutils/bfd/elf32-mips.c~ yann@1: +++ binutils/bfd/elf32-mips.c yann@1: @@ -1611,7 +1611,9 @@ yann@1: yann@1: /* The SVR4 MIPS ABI says that this should be 0x10000, and Linux uses yann@1: page sizes of up to that limit, so we need to respect it. */ yann@1: -#define ELF_MAXPAGESIZE 0x10000 yann@1: +/*#define ELF_MAXPAGESIZE 0x10000*/ yann@1: +/* Use 4K to shrink the elf header. NOT for general use! */ yann@1: +#define ELF_MAXPAGESIZE 0x1000 yann@1: #define elf32_bed elf32_tradbed yann@1: yann@1: /* Include the target file again for this target. */ yann@1: --- binutils/bfd/elfn32-mips.c~ yann@1: +++ binutils/bfd/elfn32-mips.c yann@1: @@ -1976,7 +1976,9 @@ yann@1: yann@1: /* The SVR4 MIPS ABI says that this should be 0x10000, and Linux uses yann@1: page sizes of up to that limit, so we need to respect it. */ yann@1: -#define ELF_MAXPAGESIZE 0x10000 yann@1: +/*#define ELF_MAXPAGESIZE 0x10000*/ yann@1: +/* Use 4K to shrink the elf header. NOT for general use! */ yann@1: +#define ELF_MAXPAGESIZE 0x1000 yann@1: #define elf32_bed elf32_tradbed yann@1: yann@1: /* Include the target file again for this target. */