aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-10-13 21:23:00 +0000
committerIan Lance Taylor <ian@airs.com>2009-10-13 21:23:00 +0000
commitc658516291815dcfa19290644b366d8261c3fab9 (patch)
treea66b4d6debe1fc45789995366d26434bd07bf1c3 /gold/options.h
parent032ce4e9e37bd92e928352fca78b1eee3bb41fdd (diff)
downloadgdb-c658516291815dcfa19290644b366d8261c3fab9.zip
gdb-c658516291815dcfa19290644b366d8261c3fab9.tar.gz
gdb-c658516291815dcfa19290644b366d8261c3fab9.tar.bz2
* options.h (class General_options): Add -init and -fini.
* layout.cc (Layout::finish_dynamic_section): Emit given init and fini functions.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index f14582e..1a03442 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -687,6 +687,9 @@ class General_options
N_("Treat warnings as errors"),
N_("Do not treat warnings as errors"));
+ DEFINE_string(fini, options::ONE_DASH, '\0', "_fini",
+ N_("Call SYMBOL at unload-time"), N_("SYMBOL"));
+
DEFINE_string(soname, options::ONE_DASH, 'h', NULL,
N_("Set shared library name"), N_("FILENAME"));
@@ -714,6 +717,9 @@ class General_options
DEFINE_special(incremental_unknown, options::TWO_DASHES, '\0',
N_("Use timestamps to check files (default)"), NULL);
+ DEFINE_string(init, options::ONE_DASH, '\0', "_init",
+ N_("Call SYMBOL at load-time"), N_("SYMBOL"));
+
DEFINE_special(just_symbols, options::TWO_DASHES, '\0',
N_("Read only symbol values from FILE"), N_("FILE"));