This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] make default linker --hash-style configurable option
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: Paul Pluzhnikov <ppluzhnikov at google dot com>, gcc-patches at sourceware dot org, satorux at google dot com, iant at google dot com
- Date: Tue, 5 Apr 2011 00:01:16 +0000 (UTC)
- Subject: Re: [patch] make default linker --hash-style configurable option
- References: <20110404181738.52D661909EB@elbrus2.mtv.corp.google.com> <4D9A4BA3.6000607@ubuntu.com>
On Tue, 5 Apr 2011, Matthias Klose wrote:
> On 04.04.2011 20:17, Paul Pluzhnikov wrote:
> > Greetings,
> >
> > Several Linux distributions (e.g. Fedora) carry local patches that turn
> > on --hash-style=gnu for all links.
> >
> > Attached is a proposed patch (originally by Satoru Takabayashi) that makes
> > default hash style a configure option.
> >
> > Tested by doing native bootstrap and verifying that no --hash-style is
> > passed to the linker, and also configuring with --with-linker-hash-style=gnu
> > and verifying that --hash-style=gnu is then passed to the linker.
>
> Linux distributions pass more than that by default to the linker, e.g.
> --as-needed and --no-copy-dt-needed-entries. Wouldn't it make more sense to add
> something like --with-linker-default-options=... ?
We have --with-specs that configures specs for the driver's own command
line - maybe there's a use for something like that for other specs. But
that's very much a last-resort option where there isn't a more structured
way of configuring something; I'd prefer common use cases to be easier
than that.
--
Joseph S. Myers
joseph@codesourcery.com