New issue
Advanced search Search tips

Issue 793797 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Dec 2017
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Link issue for Chromium Linux for mipsel after roll to binutils 2.28

Reported by milko.le...@mips.com, Dec 11 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Steps to reproduce the problem:
1. build Chromium for mipsel

gn gen out/mips32r2 --args="target_os=\"linux\" target_cpu=\"mipsel\" mips_arch_variant=\"r2\""

ninja -C out/mips32r2 all

What is the expected behavior?
All Chromium targets are built.

What went wrong?
There is a linker issue:

[10267/69712] SOLINK ./libGLESv2.so
FAILED: libGLESv2.so libGLESv2.so.TOC 
python "../../build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm" --sofile="./libGLESv2.so" --tocfile="./libGLESv2.so.TOC" --output="./libGLESv2.so"  -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--icf=all --target=mipsel-linux-gnu -Werror -Wl,-O1 -Wl,--gc-sections -nostdlib++ --sysroot=../../build/linux/debian_stretch_mips-sysroot -L../../build/linux/debian_stretch_mips-sysroot/lib/mipsel-linux-gnu -Wl,-rpath-link=../../build/linux/debian_stretch_mips-sysroot/lib/mipsel-linux-gnu -L../../build/linux/debian_stretch_mips-sysroot/usr/lib/mipsel-linux-gnu -Wl,-rpath-link=../../build/linux/debian_stretch_mips-sysroot/usr/lib/mipsel-linux-gnu -o "./libGLESv2.so" -Wl,-soname="libGLESv2.so" @"./libGLESv2.so.rsp"
obj/third_party/angle/src/vulkan_support/libvulkan_loader.a(loader.o):loader.c:function loader_instance_tls_heap_alloc: error: relocation overflow
obj/third_party/angle/src/vulkan_support/libvulkan_loader.a(loader.o):loader.c:function loader_instance_tls_heap_free: error: relocation overflow
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Did this work before? Yes r522145

Chrome version: r522146  Channel: n/a
OS Version: Ubuntu
Flash Version:
 
This is actually known issue for mipsel in gold, which was fixed, but it was not included in 2.28 release: https://sourceware.org/ml/binutils/2017-03/msg00153.html


One possible solution is to patch gold in 2.28:

https://chromium-review.googlesource.com/c/chromium/src/+/819350

Other possibility is to roll to bintuils 2.29 which contains this patch.
Thanks for the binutils roll.
Issue with linker is now fixed.
Status: Fixed (was: Unconfirmed)

Sign in to add a comment