From 2bf6cefad57a8e6ec4cf888e68f55440210d96b3 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sat, 11 Feb 2012 22:17:12 +0100 Subject: [PATCH] gold linker v2.22: Return to constructors in DT_INIT_ARRAY This commit effectively reverses 17078250df568635285cd6be4515d29ee8c1b72a. At the time, DragonFly did not recognize .init_array sections in an elf file, and the gold linker was lumping the contructors from gcc into this array which was subsequently filtered out. DT_INIT_ARRAY and friends are now fully supported since commit b28bf640312db2b299faff75052fbb01d67fd821 so the local modification is being removed in favor of a default build. --- contrib/binutils-2.22/README.DRAGONFLY | 1 - contrib/binutils-2.22/gold/options.h | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/binutils-2.22/README.DRAGONFLY b/contrib/binutils-2.22/README.DRAGONFLY index fc5cf716cf..d077726efe 100644 --- a/contrib/binutils-2.22/README.DRAGONFLY +++ b/contrib/binutils-2.22/README.DRAGONFLY @@ -14,6 +14,5 @@ Local modifications applied to following files: bfd/bfdver.h (new) gold/i386.cc gold/options.cc - gold/options.h gold/x86_64.cc ld/ldlex.l diff --git a/contrib/binutils-2.22/gold/options.h b/contrib/binutils-2.22/gold/options.h index 0cdb274fa2..768df9c6eb 100644 --- a/contrib/binutils-2.22/gold/options.h +++ b/contrib/binutils-2.22/gold/options.h @@ -680,9 +680,9 @@ class General_options N_("Output cross reference table"), N_("Do not output cross reference table")); - DEFINE_bool(ctors_in_init_array, options::TWO_DASHES, '\0', false, - N_("Use DT_INIT_ARRAY for all constructors"), - N_("Handle constructors as directed by compiler (default)")); + DEFINE_bool(ctors_in_init_array, options::TWO_DASHES, '\0', true, + N_("Use DT_INIT_ARRAY for all constructors (default)"), + N_("Handle constructors as directed by compiler")); DEFINE_bool(define_common, options::TWO_DASHES, 'd', false, N_("Define common symbols"), -- 2.41.0