_gold_dummy_zoption
authorMatthias Klose <doko@debian.org>
Fri, 22 Jun 2018 06:11:21 +0000 (07:11 +0100)
committerMatthias Klose <doko@debian.org>
Fri, 22 Jun 2018 06:11:21 +0000 (07:11 +0100)
# DP: let gold accept a dummy -z buildd-<random-string> option.

Gbp-Pq: Name 161_gold_dummy_zoption.diff

gold/options.cc
gold/options.h

index 5a12e5320e7d658f848ccb7de968a8c55db66f98..a7cab3f1cd96a2af5db743a75a59bbc06b24154c 100644 (file)
@@ -967,6 +967,8 @@ parse_short_option(int argc, const char** argv, int pos_in_argv_i,
     {
       int dummy_i = 0;
       const char* dash_z_arg = *arg;
+      if (strncmp(dash_z_arg, "buildd", strlen("buildd")) == 0)
+         *arg = "buildd";
       retval = parse_long_option(1, arg, true, arg, &dummy_i);
       if (retval == NULL)
        usage(_("unknown -z option"), dash_z_arg);
index b39d5ff7bacc068513c09c19b3b573166b74e356..042cccbef174c89bd7ef527fe00d305568d9192c 100644 (file)
@@ -1376,6 +1376,9 @@ class General_options
                    options::TWO_DASHES, '\0',
                    N_("Report unresolved symbols as errors"),
                    NULL, true);
+  DEFINE_bool(buildd, options::DASH_Z, '\0', false,
+             N_("Dummy z option"),
+             NULL);
 
   DEFINE_bool(wchar_size_warning, options::TWO_DASHES, '\0', true, NULL,
              N_("(ARM only) Do not warn about objects with incompatible "