Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: ld

Issue 9402039: Prevent a possible deadlock in the linker script when using goma. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/gold/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Wrapper script named "ld" that either executes gold or the system linker. 6 # Wrapper script named "ld" that either executes gold or the system linker.
7 7
8 # The gold binary was built on 64-bit Ubuntu Lucid. Don't run it on 8 # The gold binary was built on 64-bit Ubuntu Lucid. Don't run it on
9 # non-64-bit machines. Note that "uname -m" prints the kernel architecture, 9 # non-64-bit machines. Note that "uname -m" prints the kernel architecture,
10 # while this binary will also fail on 64-bit kernels with 32-bit userlands. 10 # while this binary will also fail on 64-bit kernels with 32-bit userlands.
11 11
12 base_dir=$(dirname "$0") 12 base_dir=$(dirname "$0")
13 machine=$(gcc -dumpmachine) 13 machine=$(getconf LONG_BIT)
14 if [ "$machine" = "x86_64-linux-gnu" ]; then 14 if [ "$machine" = "64" ]; then
15 exec $base_dir/gold64 "$@" 15 exec $base_dir/gold64 "$@"
16 else 16 else
17 # Fall back on the ld found in $PATH. 17 # Fall back on the ld found in $PATH.
18 exec ld "$@" 18 exec ld "$@"
19 fi 19 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698