On Mon, Jul 04, 2005 at 01:15:19PM +0100, Andrew Haley wrote:
> Gunther Nikl writes:
>  > 
>  >   Sometimes I use -Wl,-r and I tried to change what options to pass
>  >   depending on -r.
> 
> IMO that would be really bad.  The point of "-Wl" is to pass arguments
> unmolested to the linker, bypassing gcc's spec mechanism.

  I was imprecise :-/ I have a m-option which I would like to use for
  (roughly) the same purpose when invoking assembler and linker. This
  option selects the objectcode format during assembling and linking
  by passing special flags to either as or ld. When assembling this is
  always ok but when linking I would like to ignore this m-option unless
  -r was specified too. Of course, I could remove the test for this
  m-option in LINK_SPEC (making it an assembly-only option) and demand
  using -Wl to select the objectcode format when linking. However, I feel
  that it is much more convenient to have a frontend option that does
  the right thing behind the scenes.

> This si for people who really understand what they're doing.

  I agree.

  Gunther

Reply via email to