-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Describe the bug
mips version of jq cannot run on my mips devices: Illegal instruction
To Reproduce
- run jq
- Illegal instruction
Expected behavior
Show jq's help.
Environment (please complete the following information):
- OS and Version: Linux TianyiGateway 4.1.45
- jq version 1.8.0
Additional context
This is the file and readelf of my device's built-in busybox and downloaded jq:
0|u0_a990@localhost: ~/jq $ file busybox
busybox: ELF 32-bit MSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, stripped
0|u0_a990@localhost: ~/jq $ file jq jq: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, BuildID[sha1]=c136e7128099ea6e63d2f7fb3d3f849e2d0e64de, for GNU/Linux 3.2.0, stripped 0|u0_a990@localhost: ~/jq $ readelf -h busybox ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: mips
Version: 0x1
Entry point address: 0x4037f0
Start of program headers: 52 (bytes into file)
Start of section headers: 181600 (bytes into file)
Flags: 0x50001007
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 30
Section header string table index: 29
0|u0_a990@localhost: ~/jq $ readelf -h jq
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: mips
Version: 0x1 Entry point address: 0x402f70
Start of program headers: 52 (bytes into file)
Start of section headers: 2006136 (bytes into file)
Flags: 0x70001007
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 26
Section header string table index: 25
0|u0_a990@localhost: ~/jq $