DragonFly commits List (threaded) for 2012-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: gold linker v2.22: Fix constructor handling
commit 17078250df568635285cd6be4515d29ee8c1b72a
Author: John Marino <dragonflybsd@marino.st>
Date: Tue Jan 3 11:50:54 2012 +0100
gold linker v2.22: Fix constructor handling
Starting with gold 2.22, gold looks for contructors in DT_INIT_ARRAY by
default, but gcc defines them in a .ctors section. Apparently the
presence of crtbegin and crtend with their .init sections are confusing
gold, but not gnu ld.
To combat this, a new option "--no-ctors-in-init-array" was added to
emulate gnu ld behavior of looking for constructors in the .ctors
section provided by gcc. This commit makes this new option the default
behavior on DragonFly's gold.
Without this modification, a gold-built world is unbootable!
Summary of changes:
contrib/binutils-2.22/README.DRAGONFLY | 1 +
contrib/binutils-2.22/gold/options.h | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/17078250df568635285cd6be4515d29ee8c1b72a
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]