This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Options -z text and -G



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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]