aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-06 00:47:10 +0000
committerIan Lance Taylor <iant@google.com>2008-01-06 00:47:10 +0000
commitd391083d3c938e56a0d0f3e03867d91369198d35 (patch)
tree424c6ed0d5a8fa8ec5e037cee0d3a425e48b9d3b /gold/options.cc
parent2969336b5ef220b001aae71ced8b87c654734725 (diff)
downloadgdb-d391083d3c938e56a0d0f3e03867d91369198d35.zip
gdb-d391083d3c938e56a0d0f3e03867d91369198d35.tar.gz
gdb-d391083d3c938e56a0d0f3e03867d91369198d35.tar.bz2
Add support for -e and for ENTRY in linker scripts.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gold/options.cc b/gold/options.cc
index c3f1747..a26139b 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -395,12 +395,15 @@ options::Command_line_options::options[] =
GENERAL_NOARG('\0', "detect-odr-violations",
N_("Try to detect violations of the One Definition Rule"),
NULL, TWO_DASHES, &General_options::set_detect_odr_violations),
+ GENERAL_ARG('e', "entry", N_("Set program start address"),
+ N_("-e ADDRESS, --entry ADDRESS"), TWO_DASHES,
+ &General_options::set_entry),
GENERAL_NOARG('E', "export-dynamic", N_("Export all dynamic symbols"),
NULL, TWO_DASHES, &General_options::set_export_dynamic),
GENERAL_NOARG('\0', "eh-frame-hdr", N_("Create exception frame header"),
NULL, TWO_DASHES, &General_options::set_create_eh_frame_hdr),
GENERAL_ARG('h', "soname", N_("Set shared library name"),
- N_("-h FILENAME, --soname FILENAME"), ONE_DASH,
+ N_("-h FILENAME, -soname FILENAME"), ONE_DASH,
&General_options::set_soname),
GENERAL_ARG('I', "dynamic-linker", N_("Set dynamic linker path"),
N_("-I PROGRAM, --dynamic-linker PROGRAM"), TWO_DASHES,
@@ -530,7 +533,8 @@ const int options::Command_line_options::debug_options_size =
// The default values for the general options.
General_options::General_options()
- : export_dynamic_(false),
+ : entry_(NULL),
+ export_dynamic_(false),
soname_(NULL),
dynamic_linker_(NULL),
search_path_(),