binutils, gcc: readd GOLD support, currently disabled

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-05-12 14:10:00 +02:00
parent dea3faad53
commit 3438a903b6
6 changed files with 19 additions and 6 deletions

View File

@ -169,6 +169,11 @@ strip_linker_plugin() {
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||g"`
}
strip_gold() {
# strip out usage from GOLD linker
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||g"`
}
fix_module_depends() {
# modify .modinfo section in kernel module to depends on other required modules
local MODULE="$1"
@ -247,6 +252,7 @@ show_config() {
config_message="$config_message\n - SIMD support:\t\t\t $SIMD_SUPPORT"
config_message="$config_message\n - Optimizations:\t\t\t $OPTIMIZATIONS"
config_message="$config_message\n - LTO (Link Time Optimization) support: $LTO_SUPPORT"
config_message="$config_message\n - GOLD (Google Linker) Support:\t $GOLD_SUPPORT"
config_message="$config_message\n - LLVM support:\t\t\t $LLVM_SUPPORT"
# config_message="$config_message\n - CFLAGS:\t $TARGET_CFLAGS"

View File

@ -29,6 +29,10 @@ if [ "$LTO_SUPPORT" = yes ];then
LD_OPTIM="$LD_OPTIM -flto"
fi
if [ "$GOLD_SUPPORT" = yes ];then
LD_OPTIM="$LD_OPTIM -fuse-ld=gold"
fi
if [ "$DEBUG" = yes ]; then
TARGET_CFLAGS="$TARGET_CFLAGS -ggdb"
TARGET_CXXFLAGS="$TARGET_CXXFLAGS -ggdb"

View File

@ -57,8 +57,8 @@ mkdir -p objdir && cd objdir
--enable-version-specific-runtime-libs \
$WITH_64B_BFD \
--enable-plugins \
--disable-gold \
--enable-ld \
--enable-gold \
--enable-ld=default \
--enable-lto \
--disable-nls

View File

@ -25,6 +25,9 @@
# Fails to compile with GCC's link time optimization.
strip_lto
# eglibc dont support GOLD linker.
strip_gold
# Filter out some problematic *FLAGS
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"`
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"`

View File

@ -49,8 +49,8 @@ mkdir -p objdir-$1 && cd objdir-$1
--disable-libada \
--disable-libmudflap \
--disable-libatomic \
--disable-gold \
--enable-ld \
--enable-gold \
--enable-ld=default \
--enable-plugin \
--enable-lto \
--disable-libquadmath \

View File

@ -49,8 +49,8 @@ mkdir -p objdir-$1 && cd objdir-$1
--disable-libatomic \
--disable-libssp \
--disable-multilib \
--disable-gold \
--enable-ld \
--enable-gold \
--enable-ld=default \
--enable-plugin \
--enable-lto \
--disable-libquadmath \