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/layout.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gold/layout.cc') diff --git a/gold/layout.cc b/gold/layout.cc index a0d7c59..0a71a2a 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -4883,6 +4883,8 @@ Layout::finish_dynamic_section(const Input_objects* input_objects, odyn->add_constant(elfcpp::DT_FLAGS, flags); flags = 0; + if (parameters->options().global()) + flags |= elfcpp::DF_1_GLOBAL; if (parameters->options().initfirst()) flags |= elfcpp::DF_1_INITFIRST; if (parameters->options().interpose()) -- cgit v1.1