_gold_dummy_zoption
authorMatthias Klose <doko@debian.org>
Thu, 1 Oct 2020 23:04:11 +0000 (00:04 +0100)
committerRaspbian forward porter <root@raspbian.org>
Thu, 1 Oct 2020 23:04:11 +0000 (00:04 +0100)
# DP: let gold accept a dummy -z buildd-<random-string> option.

# 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 b62abcb634e55937eeaf6b4e58cb462d988b096f..acd585d40b7e237640c11c1e340b6caf0a0fc4e1 100644 (file)
@@ -965,6 +965,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 3c8d25a6628206188260b1272be464c6f0b036f7..129b9f6b91e6cf4690ae17079f010abaf277203a 100644 (file)
@@ -1394,6 +1394,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 "