Re: [PATCH RFC v2 68/70] MIPS: kernel: elf: Improve the overall ABI and FPU mode checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/19/2015 09:29 AM, Matthew Fortune wrote:
>> The previous implementation did not cover all possible FPU combinations
>> and it silently allowed ABI incompatible objects to be loaded with the
>> wrong ABI. For example, the previous logic would set the FP_64 ABI as
>> the matching ABI for an FP_XX object combined with an FP_64A object.
>> This was wrong, and the matching ABI should have been FP_64A.
>> The previous logic is now replaced with a new one which determines
>> the appropriate FPU mode to be used rather than the FP ABI. This has
>> the advantage that the entire logic is much simpler since it is the FPU
>> mode we are interested in rather than the FP ABI resulting to code
>> simplifications.
> 
> Markos,
> 
> Can you confirm that the o32 abiflags testsuite has been run on a 64-bit
> kernel? I know that the o32 testsuite has run on a 32-bit kernel and the
> n64 testsuite has run on a 64-bit kernel. It is certainly worth checking
> given the fixes that are being made to 3.19.


They all pass with my R6 64-bit kernel + R6 userland + R2 O32 testsuite.

> 
> Is it worth updating the CONFIG_MIPS_O32_FP64_SUPPORT option to no longer
> be experimental and also default on? This option could then guard the new
> logic from this patch as a safety measure. Once the code has been proven
> I'd suggest removing the option and making the code unconditional.

Paul?

Initially thought of having 32-bit R6 select this symbol but then I
dropped it. But maybe it make sense now?

-- 
markos




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux