New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 632230 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

gold linker is slowed down when LC_ALL != C

Project Member Reported by agrieve@chromium.org, Jul 28 2016

Issue description

Build libchrome.so, then try building it again with: export LC_ALL=C

On my z620, in component mode:
With LC_ALL=C: ~7 seconds
Without LC_ALL=C: ~34 seconds

While this is likely a bug in gold that should be fixed, we should just add set this variable in our linker wrapper script to benefit from it now.

I've confirmed via "diff with.so without.so" that the .so's produced are identical.
 
Cc: tmsriram@google.com mcgrathr@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, Jul 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/52f2a85089d3e3a85cee112a6ee6c7423394644b

commit 52f2a85089d3e3a85cee112a6ee6c7423394644b
Author: agrieve <agrieve@chromium.org>
Date: Fri Jul 29 01:32:14 2016

Add LC_ALL=C to gcc linker wrappers to speed up links

This speeds up an Android component build of libchrome.cr.so from
35s -> 10s on my z620.

BUG= 632230 

Review-Url: https://codereview.chromium.org/2190813002
Cr-Commit-Position: refs/heads/master@{#408549}

[modify] https://crrev.com/52f2a85089d3e3a85cee112a6ee6c7423394644b/build/toolchain/gcc_link_wrapper.py
[modify] https://crrev.com/52f2a85089d3e3a85cee112a6ee6c7423394644b/build/toolchain/gcc_solink_wrapper.py

Status: Fixed (was: Untriaged)
Is there a gold bug for this?
For the record, which version of binutils/gold was this issue discovered on?

I was checking to see if there's a similar issue with the binutils we have in Chromium OS and Android, but couldn't reproduce the linker slowdown described here.

Comment 7 by pasko@chromium.org, Sep 27 2016

the public bug has the info about binutils version, if you want something more precise => the latest gold in src/third_party/android_tools/ndk exposes the issue for us

Sign in to add a comment