[File] [PATCH 0/1] Recognize SH4A no-FPU ELF objects
cacioandpepe
artem122novak at gmail.com
Fri Oct 16 21:40:12 EDT 2026
Hello,
This patch adds SH4A no-FPU ELF identification using e_flags,
while keeping the existing Renesas SH identification.
It supports both big-endian and little-endian ELF32 objects and includes six regression tests.
Tested with Casio GCC 14.3.0.
The build and test suite pass.
Thanks for reviewing,
Artem Novak
Artem Novak (1):
magic: recognition SH4A no-FPU ELF objects
magic/Magdir/elf | 3 +++
tests/Makefile.am | 12 ++++++++++++
tests/sh-other-be.result | 1 +
tests/sh-other-be.testfile | Bin 0 -> 52 bytes
tests/sh-other-le.result | 1 +
tests/sh-other-le.testfile | Bin 0 -> 52 bytes
tests/sh4a-extra-be.result | 1 +
tests/sh4a-extra-be.testfile | Bin 0 -> 52 bytes
tests/sh4a-extra-le.result | 1 +
tests/sh4a-extra-le.testfile | Bin 0 -> 52 bytes
tests/sh4a-nofpu-be.result | 1 +
tests/sh4a-nofpu-be.testfile | Bin 0 -> 52 bytes
tests/sh4a-nofpu-le.result | 1 +
tests/sh4a-nofpu-le.testfile | Bin 0 -> 52 bytes
14 files changed, 21 insertions(+)
create mode 100644 tests/sh-other-be.result
create mode 100644 tests/sh-other-be.testfile
create mode 100644 tests/sh-other-le.result
create mode 100644 tests/sh-other-le.testfile
create mode 100644 tests/sh4a-extra-be.result
create mode 100644 tests/sh4a-extra-be.testfile
create mode 100644 tests/sh4a-extra-le.result
create mode 100644 tests/sh4a-extra-le.testfile
create mode 100644 tests/sh4a-nofpu-be.result
create mode 100644 tests/sh4a-nofpu-be.testfile
create mode 100644 tests/sh4a-nofpu-le.result
create mode 100644 tests/sh4a-nofpu-le.testfile
--
2.56.0
More information about the File
mailing list