From Craig Silverstein: Minimal --script implementation.
authorIan Lance Taylor <iant@google.com>
Fri, 26 Oct 2007 18:03:24 +0000 (18:03 +0000)
committerIan Lance Taylor <iant@google.com>
Fri, 26 Oct 2007 18:03:24 +0000 (18:03 +0000)
gold/options.cc
gold/options.h

index 1e4b90e1d4e2bce94b398589280c4417304b70c6..9e5e270845a5182b6ef7418050e0ca31426df7a6 100644 (file)
@@ -377,6 +377,9 @@ options::Command_line_options::options[] =
                NULL, TWO_DASHES, &General_options::set_stats),
   GENERAL_ARG('\0', "sysroot", N_("Set target system root directory"),
              N_("--sysroot DIR"), TWO_DASHES, &General_options::set_sysroot),
+  GENERAL_ARG('T', "script", N_("Read linker script"),
+              N_("-T FILE, --script FILE"), TWO_DASHES,
+              &General_options::set_script),
   GENERAL_ARG('\0', "Ttext", N_("Set the address of the .text section"),
               N_("-Ttext ADDRESS"), ONE_DASH,
               &General_options::set_text_segment_address),
index dad1c90180e894b5873d6c2a9ddfb478b12662e8..e3d5c266156f7ed1a94bcb63e998bdb58667b545 100644 (file)
@@ -316,6 +316,14 @@ class General_options
   set_static()
   { this->is_static_ = true; }
 
+  void
+  set_script(const char* arg)
+  {
+    fprintf(stderr, _("%s: cannot parse %s: -T/--script not yet supported\n"),
+            program_name, arg);
+    ::exit(1);
+  }
+
   void
   set_stats()
   { this->print_stats_ = true; }
This page took 0.036406 seconds and 4 git commands to generate.