···99#include <asm/unaligned.h>10101111#define flat_argvp_envp_on_stack() 11212-#define flat_old_ram_flag(flags) 113121413/*1514 * on the H8 a couple of the relocations have an instruction in the
···1414#include <asm/unaligned.h>15151616#define flat_argvp_envp_on_stack() 01717-#define flat_old_ram_flag(flags) (flags)18171918/*2019 * Microblaze works a little differently from other arches, because
···9797 help9898 Support uClinux FLAT format binaries.9999100100+config BINFMT_FLAT_OLD_ALWAYS_RAM101101+ bool102102+100103config BINFMT_ZFLAT101104 bool "Enable ZFLAT support"102105 depends on BINFMT_FLAT
+2-1
fs/binfmt_flat.c
···488488 * fix up the flags for the older format, there were all kinds489489 * of endian hacks, this only works for the simple cases490490 */491491- if (rev == OLD_FLAT_VERSION && flat_old_ram_flag(flags))491491+ if (rev == OLD_FLAT_VERSION &&492492+ (flags || IS_ENABLED(CONFIG_BINFMT_FLAT_OLD_ALWAYS_RAM)))492493 flags = FLAT_FLAG_RAM;493494494495#ifndef CONFIG_BINFMT_ZFLAT