aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-27 22:38:18 +0000
committerIan Lance Taylor <iant@google.com>2008-02-27 22:38:18 +0000
commit7019cd256559b48bc642fcb8ff9a4ea9e98bced7 (patch)
treec88847678e9c212b482d4a30beccdd74abdd90c6 /gold/options.cc
parent20b4711e0556d73b7a16250447ee5ca505b834db (diff)
downloadgdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.zip
gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.tar.gz
gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.tar.bz2
Implement -q/--emit-relocs.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 2dbfad8..c65862e 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -530,8 +530,10 @@ options::Command_line_options::options[] =
GENERAL_ARG('\0', "oformat", N_("Set output format (only binary supported)"),
N_("--oformat FORMAT"), EXACTLY_TWO_DASHES,
&General_options::set_oformat),
+ GENERAL_NOARG('q', "emit-relocs", N_("Generate relocations in output"),
+ NULL, TWO_DASHES, &General_options::set_emit_relocs),
GENERAL_NOARG('r', "relocatable", N_("Generate relocatable output"), NULL,
- ONE_DASH, &General_options::set_relocatable),
+ TWO_DASHES, &General_options::set_relocatable),
// -R really means -rpath, but can mean --just-symbols for
// compatibility with GNU ld. -rpath is always -rpath, so we list
// it separately.
@@ -672,6 +674,7 @@ General_options::General_options()
output_file_name_("a.out"),
oformat_(OBJECT_FORMAT_ELF),
oformat_string_(NULL),
+ emit_relocs_(false),
is_relocatable_(false),
strip_(STRIP_NONE),
allow_shlib_undefined_(false),