diff options
author | Chris Demetriou <cgd@google.com> | 2008-09-12 05:42:29 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2008-09-12 05:42:29 +0000 |
commit | 7be8330a59e4c55791360237af8cf2b070d0f45c (patch) | |
tree | d0f813a29a7919f42c2e65c16e4ddcd3880a9449 /gold/options.h | |
parent | d140ac6b030299f1c19722a6f5cebda6e5f688b8 (diff) | |
download | gdb-7be8330a59e4c55791360237af8cf2b070d0f45c.zip gdb-7be8330a59e4c55791360237af8cf2b070d0f45c.tar.gz gdb-7be8330a59e4c55791360237af8cf2b070d0f45c.tar.bz2 |
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.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index 46ad761..8614ce6 100644 --- a/gold/options.h +++ b/gold/options.h @@ -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; |