X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-powerpc%2Felf.h;h=80d1f399ee513a944aae0b7366a55d588393fac9;hb=df1efe6f871e2d3f83e6ad7b7a1d2b728b478fc2;hp=89664675b469d8af2212b826433c4a6861f3b4e5;hpb=11c2d8174ed3dc4f1971564732689b4a39129702;p=linux-2.6 diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h index 89664675b4..80d1f399ee 100644 --- a/include/asm-powerpc/elf.h +++ b/include/asm-powerpc/elf.h @@ -217,6 +217,14 @@ typedef elf_vrregset_t elf_fpxregset_t; #define ELF_PLATFORM (cur_cpu_spec->platform) +/* While ELF_PLATFORM indicates the ISA supported by the platform, it + * may not accurately reflect the underlying behavior of the hardware + * (as in the case of running in Power5+ compatibility mode on a + * Power6 machine). ELF_BASE_PLATFORM allows ld.so to load libraries + * that are tuned for the real hardware. + */ +#define ELF_BASE_PLATFORM (powerpc_base_platform) + #ifdef __powerpc64__ # define ELF_PLAT_INIT(_r, load_addr) do { \ _r->gpr[2] = load_addr; \