Bug#1142174: sh4-linux-gnu-gcc does not produce big-endian binaries
Michael Tokarev <[email protected]> Thu, 16 Jul 2026 11:22:04 +0300
| Newsgroups | gmane.linux.debian.ports.superh |
|---|---|
| Message-ID | <178419012490.990354.15933846852225970822.reportbug__11402.2193172545$1784190327$gmane$org@localhost> |
Package: gcc-15-sh4-linux-gnu Version: 15.3.0-1cross1 Severity: normal X-Debbugs-Cc: [email protected] User: [email protected] Usertags: sh4 When trying to build an sh4eb binary, there's a failure at the link stage: sh4-linux-gnu-gcc -mb vdso.S [other options] ... sh4-linux-gnu-ld.bfd: unrecognised emulation mode: shelf_linux Supported emulations: shlelf_linux shlelf_fd >From the specs: *link_emul_prefix: sh%{!mb:l}elf I dunno if this is supposed to be valid or not, and whenever this is a gcc bug (specs file) or missing support in binutils. as gets --big option correctly. Also, using sh4-linux-gnu-gcc -Wl,-EB -Wa,--big vdso.S produces a binary, but I dunno (yet) if it is the right one or not. This is needed for qemu, as it now ships vdso for sh4eb (in assembly form, so it does not need anything extra) which has to be compiled. Thanks, /mjt