2008-09-11 Chris Demetriou <cgd@google.com>

* options.h (origin): New -z option.
        * layout.cc (Layout:finish_dynamic_section): If "-z origin"
        is specified, set DF_ORIGIN in DT_FLAGS and set DF_1_ORIGIN
        in DT_FLAGS_1.
This commit is contained in:
Chris Demetriou
2008-09-12 05:42:29 +00:00
parent d140ac6b03
commit 7be8330a59
3 changed files with 14 additions and 0 deletions

View File

@@ -837,6 +837,9 @@ class General_options
DEFINE_bool(relro, options::DASH_Z, '\0', false,
N_("Where possible mark variables read-only after relocation"),
N_("Don't mark variables read-only after relocation"));
DEFINE_bool(origin, options::DASH_Z, '\0', false,
N_("Mark DSO to indicate that needs immediate $ORIGIN "
"processing at runtime"), NULL);
public:
typedef options::Dir_list Dir_list;