Wind River Support Network

HomeDefectsLIN8-7035
Fixed

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: 8.0.0.18
Fix Version: 8.0.0.21
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: BSP

Description

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

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/ld.so.1, BuildID[sha1]=7b9af8dd4fd275aafb54ce65a019f5c09e9e3ac7, for GNU/Linux 3.1.0, not stripped

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

Other Downloads


Live chat
Online