From fb2578353335091488c8a5a02e8275a7c139f51a Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Mon, 1 Dec 2014 13:37:21 -0800 Subject: Add support for -z global. gold/ * layout.cc (Layout::finish_dynamic_section): When '-z global' is specified set DF_1_GLOBAL in DT_FLAGS_1 flags. * options.h (General_options): New -z option (global). --- gold/options.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gold/options.h') diff --git a/gold/options.h b/gold/options.h index cf3b705..6d827f1 100644 --- a/gold/options.h +++ b/gold/options.h @@ -1272,6 +1272,9 @@ class General_options NULL); DEFINE_bool(execstack, options::DASH_Z, '\0', false, N_("Mark output as requiring executable stack"), NULL); + DEFINE_bool(global, options::DASH_Z, '\0', false, + N_("Make symbols in DSO available for subsequently loaded " + "objects"), NULL); DEFINE_bool(initfirst, options::DASH_Z, '\0', false, N_("Mark DSO to be initialized first at runtime"), NULL); -- cgit v1.1