diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-06-22 20:23:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-06-22 20:23:21 +0000 |
commit | e1c74d60518dbc83c562951e89203274e4ff17ce (patch) | |
tree | 13e09d9e27e9abe1120fe387a41b2a04423b3304 /gold/layout.cc | |
parent | 07e7f39ffd43349e4e64f77c45199d865b6e7cff (diff) | |
download | gdb-e1c74d60518dbc83c562951e89203274e4ff17ce.zip gdb-e1c74d60518dbc83c562951e89203274e4ff17ce.tar.gz gdb-e1c74d60518dbc83c562951e89203274e4ff17ce.tar.bz2 |
PR 10141
* options.h (class General_options): Add -z lazy and -z now. Sort
-z options into alphabetical order.
* layout.cc (Layout::finish_dynamic_section): Handle -z now.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index c3020cd..ae2a5dc 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -2835,6 +2835,8 @@ Layout::finish_dynamic_section(const Input_objects* input_objects, flags |= elfcpp::DF_STATIC_TLS; if (parameters->options().origin()) flags |= elfcpp::DF_ORIGIN; + if (parameters->options().now()) + flags |= elfcpp::DF_BIND_NOW; odyn->add_constant(elfcpp::DT_FLAGS, flags); flags = 0; @@ -2858,6 +2860,8 @@ Layout::finish_dynamic_section(const Input_objects* input_objects, | elfcpp::DF_1_NOOPEN); if (parameters->options().origin()) flags |= elfcpp::DF_1_ORIGIN; + if (parameters->options().now()) + flags |= elfcpp::DF_1_NOW; if (flags) odyn->add_constant(elfcpp::DT_FLAGS_1, flags); } |