Wind River Support Network


LIN8-7035 : SDK: mips 64-bit executable links 32-bit loader

Created: Jul 3, 2017    Updated: Mar 4, 2019
Resolved Date: Aug 25, 2017
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: BSP


Compiling an application with the 64bit SDK results in a 64bit application that uses the 32bit

Steps to Reproduce

1. /configure --enable-board=cav-octeon3 --enable-kernel=standard --enable-rootfs=glibc_small+initramfs-integrated --enable-multilib=lib64 --with-rcpl-version=0018
2. make export-sdk
3. install the sdk
4. source the 64bit SDK: source environment-setup-octeon3_64-wrsmllib64-linux 
5. build simple hello.c file: $CC hello.c -o hello-64
6. resulting file:

$ file hello-64 
hello-64: ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version 1 (SYSV), dynamically linked, interpreter /lib32/, BuildID[sha1]=7b9af8dd4fd275aafb54ce65a019f5c09e9e3ac7, for GNU/Linux 3.1.0, not stripped

I've checked and the 64bit exists in the sysroots directory.

Other Downloads

Live chat