dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with gdb testsuite C++ tests and -Wl,-T<linker-script>


From: Rob Savoye
Subject: Re: Problem with gdb testsuite C++ tests and -Wl,-T<linker-script>
Date: Tue, 10 Sep 2002 09:51:22 -0600
User-agent: Mutt/1.2.5.1i

On Tue, Sep 10, 2002 at 10:06:48AM -0500, Fred Fish wrote:

> However some of the test case compiles invoked this way are failing
> because -Wl causes the -T option to be put in the middle of the linker
> argument list instead of at the end.  Basically it just plops it in
> wherever it naturally occurs because of the -Wl option.  If instead of
> using -Wl you just use a -T option directly, then the compilation and
> link succeed.  I.E. just change the command to:

  Personally, I'd consider this a bug in GCC. -Wl options used to go at the
end of the link line. This was before the -T option was added I'd guess, which
is preferable to the -Wl,-T[script] hack.
 
> (1) Remove all the "-Wl," prefixes from the ldscript options set in
> the baseboard files.  This works, but perhaps will break in
> environments where the compiler in use does handle "-Wl,-Tscript.ld"
> but not "-Tscript.ld".  Its been a long time since I worked with any
> compiler except gcc and perhaps there are some where the -Wl form
> works but not the bare -T form.
 
  As far as I know, nobody uses the gcc testsuite for any other compiler. I
believe the -Wl and -T options are unique to GCC. You'd have to ask the GCC
team about this. My preference would be to modify the baseboard files to
"do the right thing". Since the baseboard files are very GCC specific, I
don't see a problem with this.

  How come nobody has noticed this before ? You'd think nobody would be able
to do any cross testing otherwise.

        - rob -




reply via email to

[Prev in Thread] Current Thread [Next in Thread]