git: gold linker v2.22: Fix constructor handling
Francois Tigeot
ftigeot at crater.dragonflybsd.org
Tue Jan 3 09:48:06 PST 2012
commit 17078250df568635285cd6be4515d29ee8c1b72a
Author: John Marino <dragonflybsd at 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
More information about the Commits
mailing list