Recognize and ignore the --eh-frame-hdr option.
authorIan Lance Taylor <iant@google.com>
Wed, 22 Aug 2007 17:07:36 +0000 (17:07 +0000)
committerIan Lance Taylor <iant@google.com>
Wed, 22 Aug 2007 17:07:36 +0000 (17:07 +0000)
gold/options.cc
gold/options.h

index 12703bd52a4e4d9beb73513cf4fd5e2db08d43c7..af168ad6c3d2816ce40ca0c1046e5cbc9b79b8f2 100644 (file)
@@ -252,6 +252,8 @@ options::Command_line_options::options[] =
   GENERAL_ARG('R', "rpath", N_("Add directory to runtime search path"),
               N_("-R DIR, -rpath DIR"), ONE_DASH,
               &General_options::add_to_rpath),
+  GENERAL_NOARG('\0', "eh-frame-hdr", N_("Create exception frame header"),
+                NULL, TWO_DASHES, &General_options::create_eh_frame_hdr),
   GENERAL_NOARG('\0', "shared", N_("Generate shared library"),
                NULL, ONE_DASH, &General_options::set_shared),
   GENERAL_NOARG('\0', "static", N_("Do not link against shared libraries"),
@@ -285,6 +287,7 @@ General_options::General_options()
     search_path_(),
     output_file_name_("a.out"),
     is_relocatable_(false),
+    create_eh_frame_hdr_(false),
     rpath_(),
     is_shared_(false),
     is_static_(false)
index 05203b128a5e0faac8236ba0f1542953627bed16..7b1fe67e6c3a6678e31c16a23ab6d489a4accba1 100644 (file)
@@ -64,6 +64,11 @@ class General_options
   is_relocatable() const
   { return this->is_relocatable_; }
 
+  // --eh-frame-hdr: Whether to generate an exception frame header.
+  bool
+  create_eh_frame_hdr() const
+  { return this->create_eh_frame_hdr_; }
+
   // --rpath: The runtime search path.
   const Dir_list&
   rpath() const
@@ -107,6 +112,10 @@ class General_options
   set_relocatable()
   { this->is_relocatable_ = true; }
 
+  void
+  create_eh_frame_hdr()
+  { this->create_eh_frame_hdr_ = true; }
+
   void
   add_to_rpath(const char* arg)
   { this->rpath_.push_back(arg); }
@@ -128,6 +137,7 @@ class General_options
   Dir_list search_path_;
   const char* output_file_name_;
   bool is_relocatable_;
+  bool create_eh_frame_hdr_;
   Dir_list rpath_;
   bool is_shared_;
   bool is_static_;