mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-05 00:36:22 +00:00
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).
This commit is contained in:
parent
d8e603148f
commit
fb25783533
@ -1,3 +1,9 @@
|
||||
2014-12-01 Dimitry Ivanov <dimitry@google.com>
|
||||
|
||||
* 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).
|
||||
|
||||
2014-12-01 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
PR gold/17578
|
||||
|
@ -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())
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user