Wind River Support Network

HomeDefectsLIN6-9398
Fixed

LIN6-9398 : Link time optimization link failure on WRL6.0.0.16 and WRL7.0.0.1

Created: Feb 3, 2015    Updated: Dec 3, 2018
Resolved Date: Mar 18, 2015
Found In Version: 6.0.0.16
Fix Version: 6.0.0.19
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Toolchain

Description

Issue: 
Link failure when using link time optimization, -flto. 

Steps to reproduce: 
Build any of the attached examples for Power PC either by adding the included recipe to the platform build or using an SDK generated from the platform build. Alternatively one may use the example found in the first link under "additional info" below. 

Result: 
/proj/platform_cs/linux/3pp/WindRiver/wrlinux_600.16/wrlinux-6/layers/binary-toolchain-4.8-40/bin/../lib/gcc/powerpc-wrs-linux-gnu/4.8.1/../../../../powerpc-wrs-linux-gnu/bin/ld: so: TLS definition in ./libso.so section .tbss mismatches non-TLS reference in lib.o (symbol from plugin) ./liblib.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status 

Additional info: 
Seems to be the same issue as: 
1. https://sourceware.org/bugzilla/show_bug.cgi?id=16846 
2. https://lists.gnu.org/archive/html/bug-binutils/2014-04/msg00124.html 
3. https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blobdiff;f=bfd/elflink.c;h=6756fb1312c193318af56f922179ffcfe545a71f;hp=3de00e10eee140b7eb29725b57d05d1530b6bd9c;hb=4c34aff883e4fcc958a2d2c98874a035efc07651;hpb=389b98f7d880c8551bec64f9e7fb0b05fa941de6

The difference being that in this issue the input to the linker is a ".a" and a ".so". 

Workaround

Replace the ld in

wrlinux-6/layers/binary-toolchain-4.8-42/powerpc-wrs-linux-gnu/bin

with attached one.

Other Downloads


Live chat
Online