https://bugs.kde.org/show_bug.cgi?id=340777

--- Comment #7 from Luiz Angelo De Luca <luizl...@gmail.com> ---
Most of binaries are mips16 on OpenWRT or LEDE.

$
./staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-readelf
-h staging_dir/target-mips_24kc_musl-1.1.16/root-ar71xx/bin/busybox
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 01 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:                       1
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x4037d0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          366924 (bytes into file)
  Flags:                             0x74001005, noreorder, cpic, o32, mips16,
mips32r2
  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:         39
  Section header string table index: 36

And on those that are not, valgrind still fails (different bug?)

root@router.lan3:~# valgrind ssh
==13507== Memcheck, a memory error detector
==13507== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==13507== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==13507== Command: ssh
==13507==
==13507== Conditional jump or move depends on uninitialised value(s)
==13507==    at 0x40731E4: ??? (in /lib/libc.so)
==13507==    by 0x4083164: ??? (in /lib/libc.so)
==13507==
==13507== Conditional jump or move depends on uninitialised value(s)
==13507==    at 0x4072924: ??? (in /lib/libc.so)
==13507==    by 0x4072D98: ??? (in /lib/libc.so)
==13507==
Segmentation fault

$
./staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-readelf
-h staging_dir/target-mips_24kc_musl-1.1.16/root-ar71xx/usr/bin/ssh
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 01 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:                       1
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x402260
  Start of program headers:          52 (bytes into file)
  Start of section headers:          208740 (bytes into file)
  Flags:                             0x70001005, noreorder, cpic, o32, mips32r2
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         9
  Size of section headers:           40 (bytes)
  Number of section headers:         39
  Section header string table index: 36

I don't know if something it uses is compiled with mips16

root@router.lan3:~# ldd /usr/bin/ssh
        /lib/ld-musl-mips-sf.so.1 (0x55bf4000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x770c4000)
        libc.so => /lib/ld-musl-mips-sf.so.1 (0x55bf4000)

$
./staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-readelf
-h
staging_dir/target-mips_24kc_musl-1.1.16/root-ar71xx/lib/ld-musl-mips-sf.so.1
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:                              DYN (Shared object file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0xf0d0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          2784856 (bytes into file)
  Flags:                             0x70001007, noreorder, pic, cpic, o32,
mips32r2
  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: 27

$
./staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-readelf
-h staging_dir/target-mips_24kc_musl-1.1.16/root-ar71xx/lib/libgcc_s.so.1
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:                              DYN (Shared object file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x2810
  Start of program headers:          52 (bytes into file)
  Start of section headers:          361672 (bytes into file)
  Flags:                             0x70001005, noreorder, cpic, o32, mips32r2
  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:         37
  Section header string table index: 34

I always get either segfault or illegal instruction

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to