[patch, binutils] Patch elf/mips.h for -mfp64 support.

Doug Gilmore Doug.Gilmore@imgtec.com
Tue Sep 10 00:56:00 GMT 2013

We would like to enable Linux processes to use 64-bit FP registers (as
opposed to using register pairs for DP values) on 32-bit MIPS

Even though there are GNU attributes for this mode AFAICS, the GNU
attribution section is not being inspected by the Linux kernel, thus
adding a bit to the MIPS e_flag field is needed.

Is it OK if we apply the following patch so that we can proceed with
adding the support to the Linux kernel to support this mode?

Changelog entry:

2013-09-07  Doug Gilmore <doug.gilmore@imgtec.com>

	* mips.h (EF_MIPS_32BITMODE): New e_flags bit.
	* elfxx-mips.c check for EF_MIPS_32BITMODE, print [32bitfp64]
	* readelf.c check for EF_MIPS_32BITMODE, print 32bitfp64
	* tc-mips.c When it is appropriate, set EF_MIPS_32BITMODE.

Patch attached.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: EF_MIPS_32BITMODE_FP64.patch
Type: text/x-patch
Size: 2639 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130910/c47c2c31/attachment.bin>

More information about the Binutils mailing list