Add a migration script to enable the gold linker on x86 and amd64

BUG=chromium-os:21619
TEST=run build_packages on x86-generic and amd64-generic and
ensure gold linker is enabled via "binutils-config -l"

Change-Id: I7026fad808587a5d6158421c3dac9d18b7141242
Reviewed-on: http://gerrit.chromium.org/gerrit/9996
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Commit-Ready: Sonny Rao <sonnyrao@chromium.org>
This commit is contained in:
Sonny Rao 2011-10-12 17:52:32 -07:00 committed by Gerrit
parent 342dbdaf10
commit e2e33f1b17

View File

@ -0,0 +1,10 @@
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
for toolchain in i686-pc-linux-gnu x86_64-cros-linux-gnu; do
if label=$(binutils-config -c $toolchain); then
sudo binutils-config ${label%-gold}-gold
fi
done
exit 0