Options -z text and -G

Takis Psarogiannakopoulos takis@XFree86.Org
Thu Jan 7 09:26:00 GMT 2010



Ian, (and fellow binutils)

Just to say both -G and -z text options are not supported by gold. Several
systems of SVR4 flavour based on these options on libtool etc.Very easy
fix will be


options.cc General_options::finalize()

- if (this->Bshareable())
+ if ( (this->Bshareable()) || (this->G()) )


options.h, Add the following trivial

  DEFINE_bool_alias(dn, Bdynamic, options::ONE_DASH, '\0',
                    N_("Use static linking"), NULL,
                    true);

  DEFINE_bool_alias(dy, Bdynamic, options::ONE_DASH, '\0',
                    N_("Use dynamic linking"), NULL,
                    false);

  DEFINE_bool(G, options::ONE_DASH, '\0', false,
              N_("Generate shared library"), NULL);

  DEFINE_bool(text, options::DASH_Z, '\0', false,
              N_("disallow output relocations against text"),
              NULL);

Regards,



More information about the Binutils mailing list